Function at 0x40ef90
Capabilities:
Create process on windows
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8abd
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5021c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x40], ecx
cmp eax, 0x4e
ja 0x40f158
je 0x40f018
sub eax, 2
je 0x40efff
sub eax, 3
jne 0x40eff8
push 1
mov eax, esi
shr eax, 0x10
push eax
movzx eax, si
push eax
push 0
push 0
push dword [edi + 0x30]
call dword [sym.imp.USER32.dll_MoveWindow]
xor eax, eax
jmp 0x40f298
push dword [edi + 0x30]
call dword [sym.imp.USER32.dll_CloseWindow]
push dword [edi + 0x30]
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
jmp 0x40f298
test esi, esi
je 0x40eff8
mov eax, dword [esi]
cmp eax, dword [edi + 0x30]
jne 0x40eff8
cmp dword [esi + 8], 0x70b
jne 0x40eff8
mov eax, dword [esi + 0xc]
cmp eax, 0x202
je 0x40f03b
cmp eax, 0x20
jne 0x40eff8
mov eax, dword [esi + 0x1c]
xor ebx, ebx
sub eax, dword [esi + 0x18]
mov ecx, 2
inc eax
mul ecx
seto bl
neg ebx
or ebx, eax
push ebx
call fcn.004ad065
push ebx
mov ebx, eax
push 0
push ebx
call fcn.004affe0
add esp, 0x10
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x44b
push dword [edi + 0x30]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x1c]
sub eax, dword [esi + 0x18]
push eax
push ebx
call fcn.00403450
cmp dword [ebp - 0x18], 0
je 0x40f0fa
cmp dword [esi + 0xc], 0x20
jne 0x40f0d9
push 0x7f89
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x40f0fa
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
jbe 0x40f0e5
mov eax, dword [ebp - 0x28]
push 0xa
push 0
push 0
push eax
push str.open
push dword [ebp - 0x40]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x40f134
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40f12a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f2b6
push ecx
push edx
call fcn.004accfd
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
push ebx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004ad06e
add esp, 4
xor eax, eax
jmp 0x40f298
sub eax, 0x110
je 0x40f198
sub eax, 1
jne 0x40eff8
movzx ecx, word [ebp + 0x14]
mov eax, ecx
sub eax, 1
je 0x40f17c
sub eax, 1
jne 0x40eff8
cmp byte [edi + 0x20], 0
je 0x40f189
mov byte [edi + 0x21], 1
mov dword [edi + 0x24], ecx
push ecx
push dword [edi + 8]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x40f293
push ecx
push dword [edi + 0x50]
push ecx
mov ecx, edi
call fcn.00402ac0
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x38]
push eax
push dword [edi + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
push 0
push dword [edi + 4]
push 0
push dword [edi + 8]
push eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x38]
push eax
push 0
push 0
push 0x50a0880c
push 0x4eb5ac
push str.RICHEDIT50W
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
lea ecx, [edi + 0x38]
mov dword [edi + 0x30], eax
cmp dword [ecx + 0x14], 7
jbe 0x40f200
mov ecx, dword [ecx]
movzx eax, word [edi + 0x34]
push ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40f293
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40f293
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [edi + 4]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x40f293
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x44]
push ebx
push eax
push 0x461
push dword [edi + 0x30]
mov dword [ebp - 0x40], 0xfde9
mov dword [ebp - 0x44], 4
call esi
push dword [edi + 0x30]
call dword [sym.imp.USER32.dll_SetFocus]
push 0
push 0xffffffffffffffff
push 0xb1
push dword [edi + 0x30]
call esi
push 0
push 1
push 0xcf
push dword [edi + 0x30]
call esi
push 0x4000004
push 0
push 0x445
push dword [edi + 0x30]
call esi
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004accbf
mov esp, ebp
pop ebp
ret 0x14
call fcn.004b306f
int3