Function at 0x40f680
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x5284b6
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x568fd0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x3c]
mov dword [esi], method.Editor.virtual_20
mov dword [esi + 4], ebp
mov eax, dword [ebp]
mov edx, dword [eax + 0x14c]
push esi
mov ecx, ebp
call edx
mov dword [esp + 0x34], 0
mov dword [esi + 8], 0x551344
mov dword [esi + 0xc], 0x551344
lea ebx, [esi + 8]
lea edi, [esi + 0xc]
push str.commdlg_FindReplace
mov dword [esi], 0x5382f4
mov dword [ebx], 0x5382f8
mov dword [edi], 0x5382fc
mov dword [esi + 0x10], str.btn_close
mov dword [esi + 0x14], str.btn_max
mov dword [esi + 0x18], str.btn_mid
mov dword [esi + 0x1c], str.btn_min
mov dword [esi + 0x20], str.txt_title
mov dword [esi + 0x24], str.wnd_menu_bar
mov dword [esi + 0x28], str.wnd_context_box
mov dword [esi + 0x2c], str.wnd_status_bar
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 0x34], eax
xor eax, eax
mov dword [esi + 0x4c], eax
mov edx, dword [ebp]
mov edx, dword [edx + 0x1c]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x44]
push eax
push 0x5379c8
mov ecx, ebp
call edx
xor ecx, ecx
test eax, eax
setl cl
push edi
dec ecx
and ecx, dword [esp + 0x48]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
push 0xc
call fcn.00501e17
add esp, 4
test eax, eax
je 0x40f794
mov dword [eax + 8], ebx
mov dword [eax + 4], 0
mov dword [eax], 0x538300
mov ebx, eax
jmp 0x40f796
xor ebx, ebx
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x40f7a6
mov eax, dword [ebx]
mov edx, dword [eax]
mov ecx, ebx
call edx
mov byte [esp + 0x34], 1
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x1c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x18]
lea ecx, [esp + 0x18]
push ebx
push ecx
mov edi, ebp
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
call fcn.0040e130
mov edx, dword [ebp]
mov eax, dword [esi + 0x24]
mov edx, dword [edx + 0xa4]
add esp, 8
push eax
mov ecx, ebp
call edx
mov edi, eax
test edi, edi
jne 0x40f7f3
call fcn.004301b0
push 0x28
call fcn.00501e17
add esp, 4
mov dword [esp + 0x44], eax
mov byte [esp + 0x34], 2
test eax, eax
je 0x40f812
push eax
call fcn.004125b0
jmp 0x40f814
xor eax, eax
mov byte [esp + 0x34], 1
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x38], eax
mov eax, dword [ebp]
mov edx, dword [eax + 0xa4]
push ecx
mov ecx, ebp
call edx
mov edi, eax
test edi, edi
jne 0x40f838
call fcn.004301b0
push 0x38
call fcn.00501e17
add esp, 4
mov dword [esp + 0x44], eax
mov byte [esp + 0x34], 3
test eax, eax
je 0x40f859
push eax
mov ecx, edi
call fcn.00412b70
jmp 0x40f85b
xor eax, eax
mov byte [esp + 0x34], 1
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp]
mov edx, dword [eax + 0xa4]
push ecx
mov ecx, ebp
call edx
mov edi, eax
test edi, edi
jne 0x40f87f
call fcn.004301b0
mov dword [esp + 0x44], 0
test edi, edi
je 0x40f8a6
mov eax, dword [edi]
mov edx, dword [eax + 0x1c]
lea ecx, [esp + 0x44]
push ecx
push 0x538380
mov ecx, edi
call edx
test eax, eax
jge 0x40f8a6
xor eax, eax
jmp 0x40f8aa
mov eax, dword [esp + 0x44]
mov dword [esi + 0x40], eax
mov eax, dword [esp + 0x40]
push 0x69
push eax
call dword [sym.imp.USER32.dll_LoadMenuW]
mov edi, eax
test edi, edi
jne 0x40f8c5
call fcn.004301b0
push 0
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
push 0x200
lea ecx, [esi + 0x50]
push 0
push ecx
mov dword [esi + 0x44], eax
call fcn.005033b0
add esp, 0xc
push 0x200
lea edx, [esi + 0x250]
push 0
push edx
call fcn.005033b0
add esp, 0xc
push 0x40
lea eax, [esi + 0x450]
push 0
push eax
call fcn.005033b0
add esp, 0xc
mov byte [esp + 0x34], 0
test ebx, ebx
je 0x40f91f
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0xc