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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
lea eax, [esp + 0x2c]
mov ebx, ecx
push eax
push 0xf3c
mov dword [esp + 0x28], ebx
call fcn.00416550
mov edi, dword [esp + 0x30]
mov ecx, ebx
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x2c]
sub eax, edi
mov dword [esp + 0x24], eax
lea eax, [esp + 0x2c]
push eax
push 0xf3d
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], edi
call fcn.00416550
mov eax, dword [esp + 0x30]
push 1
push 0
push dword [ebx + 4]
sub eax, edi
mov dword [esp + 0x34], eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edi, dword [ebp + 0xc]
lea eax, [esi + esi]
mov dword [esp + 0x10], eax
sub edi, eax
mov esi, 0x320
nop
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0
push eax
push dword [ebx + 4]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
call dword [sym.imp.USER32.dll_MapDialogRect]
test eax, eax
jne 0x4c9764
lea eax, [esi + esi*2]
cdq
sub eax, edx
sar eax, 1
jmp 0x4c976c
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
cmp eax, edi
jle 0x4c9789
lea ecx, [esi + esi*8]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp esi, 0x28
jg 0x4c9730
mov eax, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebx + 0x124], eax
mov eax, dword [ebp + 0x10]
sub eax, dword [ebx + 0x7c]
sub eax, dword [esp + 0x18]
push 0x67
push dword [ebx + 4]
mov dword [ebp + 0x10], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x3c]
push eax
push dword [ebx + 4]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x48], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
push 1
push eax
push edi
push dword [esp + 0x4c]
push dword [esp + 0x4c]
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 + 0x2c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x3c]
push eax
push dword [ebx + 4]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x48], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
push 1
push eax
push edi
push dword [esp + 0x4c]
push dword [esp + 0x4c]
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 + 0x2c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x3c]
push eax
push dword [ebx + 4]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x48], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
push 1
push eax
push edi
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push esi
call dword [sym.imp.USER32.dll_MoveWindow]
mov esi, dword [ebx + 0x78]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], ecx
lea eax, [eax + esi*2]
add eax, esi
cmp eax, edi
jle 0x4c98dd
cmp ecx, 5
jl 0x4c98c8
dec ecx
sub eax, 2
mov dword [esp + 0x14], ecx
cmp eax, edi
jg 0x4c98b5
jmp 0x4c98dd
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 + 0x2c]
push eax
push 0x65
push dword [ebx + 4]
mov dword [esp + 0x1c], esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x3c]
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 + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x10]
sub eax, ecx
mov dword [esp + 0x30], ecx
sub eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x7c]
mov dword [esp + 0x44], eax
lea eax, [ecx + ecx*2]
cdq
and edx, 3
add eax, edx
mov edx, dword [esp + 0x44]
sar eax, 2
add eax, ecx
mov ecx, edi
cmp edx, eax
jge 0x4c9991
mov edx, eax
lea eax, [esi + esi]
cmp ecx, eax
jle 0x4c9991
sub ecx, esi
push 1
push edx
push ecx
push dword [esp + 0x4c]
push dword [esp + 0x2c]
push dword [ebx + 0xb4]
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [ebp + 0xc]
sub eax, esi
mov esi, dword [ebx + 0x7c]
sub eax, dword [esp + 0x1c]
push 2
push dword [ebx + 4]
mov dword [ebp + 0xc], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push esi
mov esi, dword [esp + 0x18]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esp + 0x14]
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 + 0x18]
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 + 0x10]
mov edx, dword [ebp + 0xc]
sub edx, dword [esp + 0x14]
push 1
push esi
push ecx
push dword [ebp + 0x10]
sub edx, ecx
push edx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
movdqa xmm0, xmmword [0x506f90]
lea eax, [esp + 0x2c]
push eax
push dword [ebx + 4]
movdqu xmmword [esp + 0x34], xmm0
call dword [sym.imp.USER32.dll_MapDialogRect]
test eax, eax
jne 0x4c9a58
lea esi, [eax + 0x5a]
jmp 0x4c9a60
mov esi, dword [esp + 0x34]
sub esi, dword [esp + 0x2c]
movdqa xmm0, xmmword [0x506fa0]
lea eax, [esp + 0x2c]
push eax
push dword [ebx + 4]
movdqu xmmword [esp + 0x34], xmm0
call dword [sym.imp.USER32.dll_MapDialogRect]
test eax, eax
jne 0x4c9a8a
mov dword [esp + 0x14], 0x72
jmp 0x4c9a96
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
movdqa xmm0, xmmword [0x506f60]
lea eax, [esp + 0x2c]
push eax
push dword [ebx + 4]
movdqu xmmword [esp + 0x34], xmm0
call dword [sym.imp.USER32.dll_MapDialogRect]
test eax, eax
jne 0x4c9abb
lea edx, [eax + 6]
jmp 0x4c9ac3
mov edx, dword [esp + 0x34]
sub edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x14]
lea ecx, [ebx + esi]
lea eax, [edx + ecx*2]
cmp eax, edi
jge 0x4c9ae7
mov ecx, edi
sub ecx, eax
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
add esi, eax
jmp 0x4c9af7
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
cmovs esi, eax
lea edx, [ebx + esi]
lea eax, [edx + edx]
mov dword [esp + 0x3c], edx
sub edi, eax
mov eax, edx
sub eax, ebx
mov dword [esp + 0x44], edi
mov dword [esp + 0x10], eax
xor edi, edi
mov eax, dword [esp + 0x18]
mov esi, eax
mov edi, edi
mov ecx, dword [esp + 0x1c]
mov ebx, ecx
cmp edi, 0xa
jl 0x4c9b36
mov ebx, dword [esp + 0x44]
cmove esi, eax
add ebx, edx
add ebx, ecx
mov eax, dword [esp + 0x20]
push dword [edi*4 + 0x500bf0]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push dword [esp + 0x28]
push dword [esp + 0x18]
push esi
push ebx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esp + 0x20]
push dword [edi*4 + 0x500bf4]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esp + 0x10]
push 1
push dword [esp + 0x28]
add ecx, ebx
push dword [esp + 0x1c]
push esi
push ecx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
add esi, dword [esp + 0x28]
add edi, 2
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
cmp edi, 0x12
jb 0x4c9b20
mov ecx, dword [esp + 0x4c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004df96c
mov esp, ebp
pop ebp
ret 0xc