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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x479008]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
lea eax, [esp + 0x40]
push edi
mov ebx, ecx
push eax
push 0xf3c
mov dword [esp + 0x2c], ebx
push dword [ebx + 4]
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x44]
mov edi, dword [sym.imp.USER32.dll_ScreenToClient]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
push dword [ebx + 4]
call edi
lea eax, [esp + 0xc]
push eax
push dword [ebx + 4]
call edi
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x50], eax
sub eax, edi
mov dword [esp + 0x28], eax
lea eax, [esp + 0x44]
push eax
push 0xf3d
push dword [ebx + 4]
mov dword [esp + 0x54], edi
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x44]
mov esi, dword [sym.imp.USER32.dll_ScreenToClient]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x30], eax
lea eax, [esp + 0xc]
push eax
push dword [ebx + 4]
call esi
lea eax, [esp + 0x2c]
push eax
push dword [ebx + 4]
call esi
mov eax, dword [esp + 0x10]
push 1
push 0
push dword [ebx + 4]
sub eax, edi
mov dword [esp + 0x38], eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esp + 0x1c]
mov esi, 0x320
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [esp + 0x14], eax
sub edi, eax
nop dword [eax]
nop dword [eax + eax]
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0
push eax
push dword [ebx + 4]
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
call dword [sym.imp.USER32.dll_MapDialogRect]
test eax, eax
jne 0x460334
lea eax, [esi + esi*2]
cdq
sub eax, edx
sar eax, 1
jmp 0x46033c
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
cmp eax, edi
jle 0x460354
lea ecx, [esi + esi*8]
mov eax, 0xcccccccd
mul ecx
mov esi, edx
shr esi, 3
cmp esi, 0x28
ja 0x460300
mov eax, dword [ebp + 0x10]
sub eax, dword [ebx + 0x7c]
sub eax, dword [esp + 0x20]
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 + 0x34]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0xc]
push eax
push dword [ebx + 4]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x18], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
push 1
push eax
push edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
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 + 0x34]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0xc]
push eax
push dword [ebx + 4]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x18], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
push 1
push eax
push edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
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 + 0x34]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0xc]
push eax
push dword [ebx + 4]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x18], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
push 1
push eax
push edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push esi
call dword [sym.imp.USER32.dll_MoveWindow]
mov esi, dword [ebx + 0x78]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], ecx
lea eax, [eax + esi*2]
add eax, esi
cmp eax, edi
jle 0x4604a0
cmp ecx, 5
jl 0x46048b
dec ecx
sub eax, 2
mov dword [esp + 0x18], ecx
cmp eax, edi
jg 0x460478
jmp 0x4604a0
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 eax, 2
cmp esi, eax
cmovl esi, eax
lea eax, [esp + 0x34]
push eax
push 0x65
push dword [ebx + 4]
mov dword [esp + 0x20], esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x48], eax
lea eax, [esp + 0xc]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [esp + 0x44]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x10]
sub eax, ecx
mov dword [esp + 0x38], ecx
sub eax, dword [esp + 0x20]
mov ecx, dword [ebx + 0x7c]
mov dword [esp + 0x44], 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 + 0x44]
cmp ecx, eax
jge 0x460554
mov ecx, eax
lea eax, [esi + esi]
cmp edx, eax
jle 0x460554
sub edx, esi
push 1
push ecx
push edx
push dword [esp + 0x1c]
push dword [esp + 0x2c]
push dword [ebx + 0xb4]
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x1c]
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 + 0x1c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esp + 0x18]
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 + 0x1c]
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 + 0x14]
mov edx, dword [ebp + 0xc]
sub edx, dword [esp + 0x18]
push 1
push esi
push ecx
push dword [ebp + 0x10]
sub edx, ecx
push edx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
movaps xmm0, xmmword [0x46ef90]
lea eax, [esp + 0x34]
push eax
push dword [ebx + 4]
movups xmmword [esp + 0x3c], xmm0
call dword [sym.imp.USER32.dll_MapDialogRect]
mov esi, dword [esp + 0x3c]
mov ecx, 0x5a
sub esi, dword [esp + 0x34]
test eax, eax
movaps xmm0, xmmword [0x46efa0]
lea eax, [esp + 0x34]
push eax
push dword [ebx + 4]
cmove esi, ecx
movups xmmword [esp + 0x3c], xmm0
call dword [sym.imp.USER32.dll_MapDialogRect]
mov ecx, dword [esp + 0x3c]
mov edx, 0x6c
sub ecx, dword [esp + 0x34]
test eax, eax
movaps xmm0, xmmword [0x46ef70]
lea eax, [esp + 0x34]
push eax
push dword [ebx + 4]
cmove ecx, edx
mov dword [esp + 0x20], ecx
movups xmmword [esp + 0x3c], xmm0
call dword [sym.imp.USER32.dll_MapDialogRect]
mov edx, dword [esp + 0x3c]
mov ecx, 6
sub edx, dword [esp + 0x34]
test eax, eax
mov ebx, dword [esp + 0x18]
cmove edx, ecx
lea ecx, [ebx + esi]
lea eax, [edx + ecx*2]
cmp eax, edi
jge 0x4606a2
mov ecx, edi
sub ecx, eax
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
add esi, eax
jmp 0x4606b2
lea ecx, [ebx + ebx]
mov eax, edi
sub eax, ecx
sub eax, edx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
xor eax, eax
test esi, esi
cmovns eax, esi
mov dword [esp + 0x14], eax
lea ecx, [eax + ebx]
lea eax, [ecx + ecx]
mov dword [esp + 0xc], ecx
sub edi, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x44], edi
mov ebx, eax
xor esi, esi
mov edi, dword [esp + 0x1c]
cmp esi, 0xa
jb 0x4606ec
add edi, ecx
add edi, dword [esp + 0x44]
cmp esi, 0xa
cmovne eax, ebx
mov ebx, eax
mov eax, dword [esi*4 + 0x46d5f0]
test eax, eax
je 0x460718
push eax
mov eax, dword [esp + 0x28]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x1c]
push ebx
push edi
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esp + 0x24]
push dword [esi*4 + 0x46d5f4]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esp + 0x14]
push 1
push dword [esp + 0x2c]
add ecx, edi
push dword [esp + 0x20]
push ebx
push ecx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
add ebx, dword [esp + 0x2c]
add esi, 2
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x20]
cmp esi, 0x14
jb 0x4606d5
mov ecx, dword [esp + 0x54]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041beab
mov esp, ebp
pop ebp
ret 0xc