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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x454100]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov ebx, ecx
push 0xf3c
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [esp + 0x3c]
push ecx
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]
push 0xf3d
push dword [ebx + 4]
mov dword [esp + 0x50], eax
sub eax, esi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], esi
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [esp + 0x3c]
push ecx
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 0x412c37
lea eax, [esi + esi*2]
cdq
sub eax, edx
sar eax, 1
jmp 0x412c3f
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
cmp eax, edi
jle 0x412c57
lea ecx, [esi + esi*8]
mov eax, 0xcccccccd
mul ecx
mov esi, edx
shr esi, 3
cmp esi, 0x28
ja 0x412c03
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 0x412dac
nop
cmp ecx, 5
jl 0x412d93
dec ecx
sub eax, 2
mov dword [esp + 0x10], ecx
cmp eax, edi
jg 0x412d80
jmp 0x412dac
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 0x412dba
mov esi, 2
mov dword [esp + 0xc], esi
push 0x65
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [esp + 0x24]
push ecx
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 0x412e60
mov ecx, eax
lea eax, [esi + esi]
cmp edx, eax
jle 0x412e60
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 0x412f3e
mov dword [esp + 0x10], 0x5a
jmp 0x412f4a
mov esi, dword [esp + 0x2c]
sub esi, dword [esp + 0x24]
mov dword [esp + 0x10], esi
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 0x412f81
lea esi, [eax + 0x6c]
jmp 0x412f89
mov esi, dword [esp + 0x2c]
sub esi, dword [esp + 0x24]
lea eax, [esp + 0x24]
mov dword [esp + 0x14], esi
push eax
push dword [ebx + 4]
mov dword [esp + 0x2c], 0
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 0x412fc4
lea edx, [eax + 6]
jmp 0x412fcc
mov edx, dword [esp + 0x2c]
sub edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
add ecx, esi
lea eax, [edx + ecx*2]
cmp eax, edi
jge 0x412ff1
mov ecx, edi
sub ecx, eax
mov eax, 0x55555556
imul ecx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, dword [esp + 0x10]
jmp 0x413001
lea ecx, [esi + esi]
mov eax, edi
sub eax, ecx
sub eax, edx
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
xor eax, eax
test ecx, ecx
sets al
dec eax
and eax, ecx
mov dword [esp + 0x10], eax
lea ecx, [esi + eax]
lea eax, [ecx + ecx]
mov dword [esp + 0x1c], ecx
sub edi, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x3c], edi
xor esi, esi
mov dword [esp + 0xc], eax
lea esp, [esp]
mov edi, dword [esp + 0x34]
cmp esi, 0xa
jb 0x413045
jne 0x41303f
mov dword [esp + 0xc], eax
add edi, ecx
add edi, dword [esp + 0x3c]
mov eax, dword [esi*4 + 0x44a030]
test eax, eax
je 0x413070
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push dword [esp + 0x1c]
push dword [esp + 0x18]
push dword [esp + 0x18]
push edi
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
push dword [esi*4 + 0x44a034]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esp + 0x10]
push 1
push dword [esp + 0x1c]
add ecx, edi
push dword [esp + 0x1c]
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 0x413030
mov ecx, dword [esp + 0x54]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00440370
mov esp, ebp
pop ebp
ret 0xc