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

Disassembly:
mov eax, 0x1154
call fcn.0040a9a0
mov eax, dword [0x42b7a4]
xor eax, esp
mov dword [esp + 0x1150], eax
mov eax, dword [esp + 0x115c]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1168]
mov ebp, ecx
push eax
push str.__s:
mov dword [esp + 0x2c], eax
lea eax, [esp + 0xc8]
push 0x50
push eax
call fcn.004035d8
add esp, 0x10
lea eax, [esp + 0x70]
push 0x50
push eax
lea eax, [esp + 0xc8]
push eax
call fcn.00407d29
lea eax, [esp + 0x70]
push eax
call fcn.00410a00
xor ebx, ebx
mov dword [esp + 0x18], eax
pop ecx
cmp dword [0x42b790], ebx
jbe 0x406e32
mov esi, 0x42b26c
cmp dword [esi], 0
jbe 0x406e26
push eax
push dword [esi + 4]
lea eax, [esp + 0x78]
push eax
call fcn.004110c0
add esp, 0xc
test eax, eax
jne 0x406e22
push 0x400
lea eax, [esp + 0x164]
mov ecx, ebp
push eax
push dword [esi + 4]
call fcn.0040640c
test al, al
je 0x406e22
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 [0x42b790]
jb 0x406ddc
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x2c]
call fcn.004061dc
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 + 0x1170], 0
mov dword [esp + 0x2c], edx
jne 0x406f6c
cmp byte [esp + 0x13], 0
je 0x406f3c
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 0x406efd
and dword [esp + 0x20], 0
test esi, esi
jns 0x406f03
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]
push 0x400
lea eax, [esp + 0x164]
mov ecx, ebp
push eax
push str.CAPTION
push dword [esp + 0x30]
call fcn.0040626f
test al, al
je 0x406f6c
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 0x4070a8
xor edi, edi
jmp 0x4070a0
cmp edi, 0x200
jge 0x4070a8
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 0x800
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x48]
sub eax, ebx
sub eax, dword [esp + 0x38]
imul eax, dword [esp + 0x18]
cdq
idiv ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
inc eax
imul eax, dword [esp + 0x2c]
cdq
idiv ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x48]
inc eax
imul eax, dword [esp + 0x18]
cdq
idiv ecx
mov ebp, eax
lea eax, [esp + 0x164]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
push str.COMBOBOX
lea eax, [esp + 0x164]
push eax
call fcn.00407df8
test eax, eax
jne 0x407073
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
and al, 3
cmp al, 1
je 0x407073
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 0x4070a8
inc edi
test esi, esi
jne 0x406f97
mov ecx, dword [esp + 0x1160]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a986
add esp, 0x1154
ret 0xc