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

Disassembly:
sub esp, 0x954
mov eax, dword [0x448780]
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.00413951
add esp, 0x10
lea eax, [esp + 0x70]
push 0x50
push eax
lea eax, [esp + 0xc8]
push eax
call fcn.0041814c
lea eax, [esp + 0x70]
push eax
call fcn.0042a900
xor ebx, ebx
mov dword [esp + 0x18], eax
pop ecx
cmp dword [0x448660], ebx
jbe 0x41351d
mov esi, 0x44816c
cmp dword [esi], 0
jbe 0x413511
push eax
push dword [esi + 4]
lea eax, [esp + 0x78]
push eax
call fcn.0042d270
add esp, 0xc
test eax, eax
jne 0x41350d
push 0x400
lea eax, [esp + 0x164]
mov ecx, ebp
push eax
push dword [esi + 4]
call fcn.00412a95
test al, al
je 0x41350d
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 [0x448660]
jb 0x4134c7
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x2c]
call fcn.004127dc
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 0x413627
cmp byte [esp + 0x970], 0
jne 0x413661
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 0x4135e8
and dword [esp + 0x20], 0
test esi, esi
jns 0x4135ee
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 0x413661
push 0x400
lea eax, [esp + 0x164]
mov ecx, ebp
push eax
push str.CAPTION
push dword [esp + 0x30]
call fcn.004128e5
test al, al
je 0x413661
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 0x413782
xor edi, edi
jmp 0x41377a
cmp edi, 0x200
jae 0x413782
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.00401d4c
test al, al
je 0x41374d
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
and al, 3
cmp al, 1
je 0x41374d
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 0x413782
inc edi
test esi, esi
jne 0x41368c
mov ecx, dword [esp + 0x960]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004253d4
add esp, 0x954
ret 0xc