Function at 0x4086af
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x443d78
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x457220]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push esi
mov eax, dword [0x457220]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
xor ebx, ebx
cmp byte [edi + 0x28e], bl
je 0x4086f6
mov byte [edi + 0x28c], 1
lea eax, [esp + 0x54]
push 0x5088
push eax
call fcn.00402c00
pop ecx
pop ecx
mov dword [esp + 0x80], ebx
cmp dword [esp + 0x6c], 8
mov eax, dword [esp + 0x58]
jae 0x40871d
lea eax, [esp + 0x58]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp byte [edi + 0x28c], bl
jne 0x4088c0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x80], 1
lea eax, [esp + 0x28]
mov byte [edi + 0x28c], 1
call fcn.00402cd3
mov byte [esp + 0x80], 2
push dword [edi + 4]
lea eax, [esp + 0x1c]
push eax
lea eax, [edi + 0x230]
push eax
lea edx, [edi + 0x6c]
lea ecx, [esp + 0x34]
call fcn.00403568
lea eax, [esp + 0x18]
call fcn.004037fc
test eax, eax
je 0x4088a7
push 0x3eb
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [esp + 0x1c]
cmp esi, dword [esp + 0x20]
mov dword [esp + 0xc], eax
jbe 0x4087ac
call fcn.00435495
lea eax, [esp + 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x20]
cmp dword [esp + 0x1c], esi
jbe 0x4087c7
call fcn.00435495
cmp dword [esp + 0x10], ebx
je 0x4087d7
lea eax, [esp + 0x18]
cmp dword [esp + 0x10], eax
je 0x4087dc
call fcn.00435495
cmp dword [esp + 0x14], esi
je 0x40887a
lea esi, [esp + 0x10]
call fcn.004037b5
lea esi, [esp + 0x38]
call fcn.00403705
push 0x4474d0
mov eax, esi
push eax
mov byte [esp + 0x88], 3
call fcn.00403724
cmp dword [esp + 0xc], ebx
je 0x408841
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x408841
cmp dword [esp + 0x50], 8
mov eax, dword [esp + 0x3c]
jae 0x408830
lea eax, [esp + 0x3c]
push eax
push ebx
push 0xc2
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push 1
lea esi, [esp + 0x40]
mov byte [esp + 0x88], 2
call fcn.0040115e
mov esi, dword [esp + 0x10]
cmp esi, ebx
jne 0x408862
call fcn.00435495
mov eax, dword [esp + 0x14]
cmp eax, dword [esi + 8]
jb 0x408870
call fcn.00435495
add dword [esp + 0x14], 0x1c
jmp 0x4087b8
cmp dword [esp + 0xc], ebx
je 0x4088a0
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4088a0
push ebx
push 7
push 0x115
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_PostMessageW]
mov byte [edi + 0x28d], 1
lea esi, [esp + 0x28]
call fcn.00403675
lea esi, [esp + 0x18]
mov byte [esp + 0x80], bl
call fcn.004038b4
cmp byte [edi + 0x28d], bl
jne 0x4088eb
cmp byte [edi + 0x100], bl
je 0x4088d5
call fcn.00409e56
push ebx
push 1
push 0x111
push dword [edi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40896c
push 0x3ee
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
cmp esi, ebx
je 0x408919
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x408919
push ebx
push 0x64
push 0x402
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
push 0x3ea
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
cmp esi, ebx
je 0x40896c
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40896c
lea eax, [esp + 0x38]
push 0x5089
push eax
call fcn.00402c00
cmp dword [esp + 0x58], 8
mov eax, dword [esp + 0x44]
pop ecx
pop ecx
jae 0x408958
lea eax, [esp + 0x3c]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push ebx
push 1
lea esi, [esp + 0x40]
call fcn.0040115e
push ebx
push 1
lea esi, [esp + 0x5c]
call fcn.0040115e
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.004350b5
mov esp, ebp
pop ebp
ret