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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x442102
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x455210]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push esi
mov eax, dword [0x455210]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
xor ebx, ebx
cmp byte [edi + 0x212], bl
je 0x408659
mov byte [edi + 0x210], 1
lea eax, [esp + 0x54]
push 0x5088
push eax
call fcn.00402be3
pop ecx
pop ecx
mov dword [esp + 0x80], ebx
cmp dword [esp + 0x6c], 8
mov eax, dword [esp + 0x58]
jae 0x408680
lea eax, [esp + 0x58]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp byte [edi + 0x210], bl
jne 0x408823
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 + 0x210], 1
call fcn.00402cb9
mov byte [esp + 0x80], 2
push dword [edi + 4]
lea eax, [esp + 0x1c]
push eax
lea eax, [edi + 0x194]
push eax
lea edx, [edi + 0x14]
lea ecx, [esp + 0x34]
call fcn.004035f6
lea eax, [esp + 0x18]
call fcn.00403865
test eax, eax
je 0x40880a
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 0x40870f
call fcn.00433c45
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 0x40872a
call fcn.00433c45
cmp dword [esp + 0x10], ebx
je 0x40873a
lea eax, [esp + 0x18]
cmp dword [esp + 0x10], eax
je 0x40873f
call fcn.00433c45
cmp dword [esp + 0x14], esi
je 0x4087dd
lea esi, [esp + 0x10]
call fcn.0040381e
lea esi, [esp + 0x38]
call fcn.0040378e
push 0x445480
mov eax, esi
push eax
mov byte [esp + 0x88], 3
call fcn.004037ad
cmp dword [esp + 0xc], ebx
je 0x4087a4
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4087a4
cmp dword [esp + 0x50], 8
mov eax, dword [esp + 0x3c]
jae 0x408793
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.00401169
mov esi, dword [esp + 0x10]
cmp esi, ebx
jne 0x4087c5
call fcn.00433c45
mov eax, dword [esp + 0x14]
cmp eax, dword [esi + 8]
jb 0x4087d3
call fcn.00433c45
add dword [esp + 0x14], 0x1c
jmp 0x40871b
cmp dword [esp + 0xc], ebx
je 0x408803
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x408803
push ebx
push 7
push 0x115
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_PostMessageW]
mov byte [edi + 0x211], 1
lea esi, [esp + 0x28]
call fcn.0041736c
lea esi, [esp + 0x18]
mov byte [esp + 0x80], bl
call fcn.0040391d
cmp byte [edi + 0x211], bl
jne 0x408841
push ebx
push 1
push 0x111
push dword [edi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4088c2
push 0x3ee
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
cmp esi, ebx
je 0x40886f
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40886f
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 0x4088c2
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4088c2
lea eax, [esp + 0x38]
push 0x5089
push eax
call fcn.00402be3
cmp dword [esp + 0x58], 8
mov eax, dword [esp + 0x44]
pop ecx
pop ecx
jae 0x4088ae
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.00401169
push ebx
push 1
lea esi, [esp + 0x5c]
call fcn.00401169
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.00433865
mov esp, ebp
pop ebp
ret