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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x45c00c]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
lea eax, [esp + 0x3c]
mov ebx, ecx
push eax
push 0xf3c
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x34]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [esp + 0x1c]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x48], eax
sub eax, esi
mov dword [esp + 0x18], eax
lea eax, [esp + 0x3c]
push eax
push 0xf3d
push dword [ebx + 4]
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x1c]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [esp + 0x4c]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x20]
push 1
push 0
push dword [ebx + 4]
sub eax, esi
mov dword [esp + 0x58], eax
call dword [sym.imp.USER32.dll_InvalidateRect]
lea eax, [edi + edi]
mov esi, 0x320
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
sub edi, eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push dword [ebx + 4]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call dword [sym.imp.USER32.dll_MapDialogRect]
test eax, eax
jne 0x4187b7
lea eax, [esi + esi*2]
cdq
sub eax, edx
sar eax, 1
jmp 0x4187bf
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
cmp eax, edi
jle 0x4187d7
lea ecx, [esi + esi*8]
mov eax, 0xcccccccd
mul ecx
mov esi, edx
shr esi, 3
cmp esi, 0x28
ja 0x418783
mov eax, dword [ebp + 0x10]
sub eax, dword [ebx + 0x7c]
sub eax, dword [esp + 0x38]
push 0x67
push dword [ebx + 4]
shr esi, 2
mov dword [ebx + 0x144], esi
mov dword [ebp + 0x10], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x1c]
push eax
push dword [ebx + 4]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x28], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
push 1
push eax
push edi
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push esi
call dword [sym.imp.USER32.dll_MoveWindow]
push 0x66
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x1c]
push eax
push dword [ebx + 4]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x28], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
push 1
push eax
push edi
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push esi
call dword [sym.imp.USER32.dll_MoveWindow]
push 0x64
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x1c]
push eax
push dword [ebx + 4]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x28], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
push 1
push eax
push edi
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push esi
call dword [sym.imp.USER32.dll_MoveWindow]
mov esi, dword [ebx + 0x78]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ecx
lea eax, [eax + esi*2]
add eax, esi
cmp eax, edi
jle 0x41892c
nop
cmp ecx, 5
jl 0x418913
dec ecx
sub eax, 2
mov dword [esp + 0x10], ecx
cmp eax, edi
jg 0x418900
jmp 0x41892c
lea eax, [ecx + ecx]
mov ecx, edi
sub ecx, eax
mov eax, 0x55555556
imul ecx
mov esi, edx
shr esi, 0x1f
add esi, edx
mov dword [esp + 0xc], esi
cmp esi, 2
jge 0x41893a
mov esi, 2
mov dword [esp + 0xc], esi
lea eax, [esp + 0x24]
push eax
push 0x65
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x1c]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [esp + 0x3c]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x10]
sub eax, dword [esp + 0x38]
sub eax, ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [ebx + 0x7c]
mov dword [esp + 0x14], eax
lea eax, [ecx + ecx*2]
cdq
and edx, 3
add eax, edx
mov edx, edi
sar eax, 2
add eax, ecx
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jge 0x4189e0
mov ecx, eax
lea eax, [esi + esi]
cmp edx, eax
jle 0x4189e0
sub edx, esi
push 1
push ecx
push edx
push dword [esp + 0x2c]
push dword [esp + 0x44]
push dword [ebx + 0xb4]
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x34]
push 2
push dword [ebx + 4]
sub eax, esi
mov esi, dword [ebx + 0x7c]
mov dword [ebp + 0xc], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push esi
mov esi, dword [esp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esp + 0x10]
push 0x1be
push dword [ebx + 4]
add eax, esi
mov esi, dword [ebx + 0x7c]
sub dword [ebp + 0xc], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push esi
push dword [esp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov esi, dword [ebx + 0x7c]
push 0x1bc
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esp + 0xc]
mov edx, dword [ebp + 0xc]
sub edx, dword [esp + 0x10]
push 1
push esi
push ecx
push dword [ebp + 0x10]
sub edx, ecx
push edx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push dword [ebx + 4]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0x3c
mov dword [esp + 0x38], 0x3c
call dword [sym.imp.USER32.dll_MapDialogRect]
test eax, eax
jne 0x418ab9
lea esi, [eax + 0x5a]
jmp 0x418ac1
mov esi, dword [esp + 0x2c]
sub esi, dword [esp + 0x24]
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push dword [ebx + 4]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0x48
mov dword [esp + 0x38], 0x48
call dword [sym.imp.USER32.dll_MapDialogRect]
test eax, eax
jne 0x418afd
mov dword [esp + 0x10], 0x6c
jmp 0x418b09
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push dword [ebx + 4]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 4
mov dword [esp + 0x38], 4
call dword [sym.imp.USER32.dll_MapDialogRect]
test eax, eax
jne 0x418b40
lea edx, [eax + 6]
jmp 0x418b48
mov edx, dword [esp + 0x2c]
sub edx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
lea ecx, [eax + esi]
lea ecx, [edx + ecx*2]
mov dword [esp + 0x14], ecx
cmp ecx, edi
jge 0x418b72
mov ecx, edi
mov eax, 0x55555556
sub ecx, dword [esp + 0x14]
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
add esi, eax
jmp 0x418b82
lea ecx, [eax + eax]
mov eax, edi
sub eax, ecx
sub eax, edx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov ecx, dword [esp + 0x10]
xor eax, eax
test esi, esi
sets al
dec eax
and eax, esi
add ecx, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
lea eax, [ecx + ecx]
sub edi, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x3c], edi
xor esi, esi
mov dword [esp + 0xc], eax
lea ecx, [ecx]
mov edi, dword [esp + 0x34]
cmp esi, 0xa
jb 0x418bc5
jne 0x418bbf
mov dword [esp + 0xc], eax
add edi, ecx
add edi, dword [esp + 0x3c]
mov eax, dword [esi*4 + 0x4517d0]
test eax, eax
je 0x418bf0
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x18]
push edi
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
push dword [esi*4 + 0x4517d4]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esp + 0x14]
push 1
push dword [esp + 0x1c]
add ecx, edi
push dword [esp + 0x18]
push dword [esp + 0x18]
push ecx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esp + 0x4c]
add esi, 2
add dword [esp + 0xc], eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x38]
cmp esi, 0x14
jb 0x418bb0
mov ecx, dword [esp + 0x54]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00449a40
mov esp, ebp
pop ebp
ret 0xc