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

Disassembly:
sub esp, 0x954
mov eax, dword [0x43f780]
xor eax, esp
mov dword [esp + 0x950], eax
mov eax, dword [esp + 0x95c]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x968]
mov ebp, ecx
push eax
push str.__s:
mov dword [esp + 0x2c], eax
lea eax, [esp + 0xc8]
push 0x50
push eax
call fcn.00408771
add esp, 0x10
lea eax, [esp + 0x70]
push 0x50
push eax
lea eax, [esp + 0xc8]
push eax
call fcn.0040c9e6
lea eax, [esp + 0x70]
push eax
call fcn.00424b80
xor ebx, ebx
mov dword [esp + 0x18], eax
pop ecx
cmp dword [0x43f660], ebx
jbe 0x40833d
mov esi, 0x43f16c
cmp dword [esi], 0
jbe 0x408331
push eax
push dword [esi + 4]
lea eax, [esp + 0x78]
push eax
call fcn.00424c10
add esp, 0xc
test eax, eax
jne 0x40832d
push 0x400
lea eax, [esp + 0x164]
mov ecx, ebp
push eax
push dword [esi + 4]
call fcn.004078b5
test al, al
je 0x40832d
lea eax, [esp + 0x160]
push eax
push dword [esi]
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, dword [esp + 0x14]
inc ebx
add esi, 0xc
cmp ebx, dword [0x43f660]
jb 0x4082e7
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x2c]
call fcn.004075fc
mov byte [esp + 0x13], al
lea eax, [esp + 0x30]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x50]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x3c]
inc ecx
sub esi, dword [esp + 0x34]
mov edx, ecx
mov eax, dword [esp + 0x58]
inc esi
mov ebx, esi
mov dword [esp + 0x18], 0x64
sub ebx, dword [esp + 0x5c]
sub edx, eax
cmp byte [esp + 0x13], 0
mov dword [esp + 0x2c], edx
je 0x408447
cmp byte [esp + 0x970], 0
jne 0x408481
imul eax, dword [esp + 0x28]
cdq
idiv dword [esp + 0x18]
add eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x5c]
imul eax, dword [esp + 0x14]
sub ecx, dword [esp + 0x1c]
cdq
idiv dword [esp + 0x18]
add eax, ebx
mov dword [esp + 0x18], eax
mov eax, ecx
sub esi, dword [esp + 0x18]
cdq
sub eax, edx
mov ecx, eax
mov eax, esi
cdq
sub eax, edx
sar ecx, 1
add ecx, dword [esp + 0x30]
mov esi, eax
sar esi, 1
add esi, dword [esp + 0x34]
mov dword [esp + 0x20], ecx
test ecx, ecx
jns 0x408408
and dword [esp + 0x20], 0
test esi, esi
jns 0x40840e
xor esi, esi
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
shr eax, 0xa
not eax
and eax, 2
or eax, 0x204
push eax
push dword [esp + 0x1c]
push dword [esp + 0x24]
push esi
push dword [esp + 0x30]
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [esp + 0x30]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp byte [esp + 0x970], 0
jne 0x408481
push 0x400
lea eax, [esp + 0x164]
mov ecx, ebp
push eax
push str.CAPTION
push dword [esp + 0x30]
call fcn.00407705
test al, al
je 0x408481
lea eax, [esp + 0x160]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 8
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 5
push edi
sub ebx, eax
call dword [sym.imp.USER32.dll_GetWindow]
cmp byte [esp + 0x13], 0
mov esi, eax
mov dword [esp + 0x18], esi
je 0x4085a2
xor edi, edi
jmp 0x40859a
cmp edi, 0x200
jae 0x4085a2
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x40]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
sub ecx, dword [esp + 0x30]
imul ecx, dword [esp + 0x28]
push 0x64
mov eax, ecx
cdq
pop ecx
idiv ecx
push str.ComboBox
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x48]
sub eax, ebx
sub eax, dword [esp + 0x38]
imul eax, dword [esp + 0x18]
push esi
cdq
idiv ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x48]
inc eax
imul eax, dword [esp + 0x30]
cdq
idiv ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x4c]
inc eax
imul eax, dword [esp + 0x1c]
cdq
idiv ecx
mov ebp, eax
call fcn.00401a30
test al, al
je 0x40856d
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
and al, 3
cmp al, 1
je 0x40856d
lea eax, [esp + 0x60]
push eax
push 0
push 0x152
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x64]
inc eax
imul eax, dword [esp + 0x14]
push 0x64
pop ecx
cdq
idiv ecx
add ebp, eax
push 0x204
push ebp
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
cmp esi, dword [esp + 0x18]
je 0x4085a2
inc edi
test esi, esi
jne 0x4084ac
mov ecx, dword [esp + 0x960]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041d184
add esp, 0x954
ret 0xc