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

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x68
cmp eax, 0xffffffff
push esi
mov esi, ecx
je 0x4aac77
cmp eax, dword [esi + 0x17998]
jl 0x4ab2d4
cmp eax, dword [esi + 0x1799c]
jg 0x4ab2d4
push ebx
mov ebx, dword [esp + 0x78]
push ebp
push edi
lea eax, [esp + 0x58]
push ebx
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov edi, dword [esp + 0x7c]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
mov ebp, eax
mov eax, dword [esp + 0x5c]
sub ecx, eax
mov eax, dword [esp + 0x58]
sub edx, eax
push ecx
push edx
push edi
mov dword [esp + 0x28], ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ebp
mov dword [esp + 0x3c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
lea ecx, [esi + 0x24]
mov dword [esp + 0x34], eax
call fcn.004a6f60
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
push ebp
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0xff8]
mov ecx, dword [esi + 0x1350]
or eax, 0x820
mov dword [esi + 0xfdc], eax
mov edx, dword [ecx + 0x50]
test edx, edx
jne 0x4aad10
or eax, 0x40000
mov dword [esi + 0xfdc], eax
lea edx, [esp + 0x58]
mov ecx, esi
push edx
push ebp
call fcn.004ad090
mov eax, dword [esi + 0x17990]
test eax, eax
je 0x4ab1fd
mov edi, dword [sym.imp.USER32.dll_CopyRect]
lea eax, [esp + 0x48]
push ebx
push eax
call edi
mov eax, dword [esi + 0x1350]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x4aad56
mov ecx, dword [esi + 0xfac]
mov edx, dword [esp + 0x50]
sub edx, ecx
mov dword [esp + 0x50], edx
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x4aad6d
mov edx, dword [esi + 0x1348]
mov eax, dword [esp + 0x48]
add eax, edx
mov dword [esp + 0x48], eax
lea ecx, [esi + 0x1294]
call fcn.00464e40
test eax, eax
je 0x4aad9d
mov eax, dword [esi + 0x1298]
mov ecx, dword [esi + 0x1344]
cdq
and edx, 3
add eax, edx
sar eax, 2
sub ecx, eax
mov eax, dword [esp + 0x50]
add eax, ecx
mov dword [esp + 0x50], eax
mov ecx, esi
call fcn.004ae000
mov eax, dword [esi + 0xfb0]
mov edx, dword [esp + 0x50]
sub edx, eax
mov dword [esp + 0x50], edx
mov edx, dword [esi + 0x1350]
mov ecx, dword [edx + 0x28]
test ecx, ecx
jne 0x4aadc5
add dword [esp + 0x48], eax
mov eax, dword [esi + 0xfb4]
mov ebx, dword [esp + 0x48]
lea ecx, [esp + 0x48]
lea edx, [esp + 0x38]
add ebx, eax
push ecx
push edx
mov dword [esp + 0x50], ebx
call edi
mov eax, dword [esi + 0x135c]
test eax, eax
je 0x4aadfd
mov eax, dword [esp + 0x44]
mov ecx, dword [esi + 0x1224]
sub eax, ecx
mov dword [esp + 0x3c], eax
jmp 0x4aae0d
mov ecx, dword [esi + 0x1224]
mov eax, dword [esp + 0x3c]
add ecx, eax
mov dword [esp + 0x44], ecx
lea edx, [esp + 0x38]
lea ebx, [esi + 0x17b18]
push edx
push ebx
call dword [sym.imp.USER32.dll_CopyRect]
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x48]
mov ecx, dword [esi + 0x1350]
sub edi, eax
mov dword [esp + 0x10], 0
mov eax, dword [ecx + 0x44]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x4aae86
mov edx, dword [esi + 0x1338]
mov eax, dword [esi + 0x17b20]
sub eax, edx
mov edx, dword [ebx]
sub eax, edx
mov ebx, dword [esi + 0x1338]
cdq
idiv dword [esi + 0x17990]
mov edx, dword [ecx + 0x3c]
add eax, ebx
cmp eax, edx
jae 0x4aae74
mov dword [esp + 0x14], 1
jmp 0x4aae86
lea eax, [esp + 0x38]
mov ecx, esi
push eax
push edi
push ebp
call fcn.004ae4e0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
xor ebx, ebx
test eax, eax
je 0x4aaf26
mov ecx, dword [esi + 0x1338]
mov ebx, dword [esi + 0x17990]
mov ebp, edi
sub ebp, ecx
mov eax, ebp
cdq
idiv ebx
mov ebx, eax
mov eax, dword [esi + 0x1350]
add ebx, ecx
mov edx, dword [eax + 0x38]
cmp ebx, edx
jl 0x4aaebc
mov ebx, edx
mov eax, dword [eax + 0x3c]
mov dword [esp + 0x18], ebx
cmp ebx, eax
mov dword [esp + 0x80], eax
jg 0x4aaed0
mov ebx, eax
mov eax, ebx
mov edx, dword [esp + 0x80]
sub eax, ecx
imul eax, dword [esi + 0x17990]
add eax, ecx
cmp dword [esp + 0x18], edx
jge 0x4aaf12
mov ebx, dword [esi + 0x179ac]
mov eax, ebp
cdq
idiv ebx
mov dword [esi + 0x179e4], 1
mov ebx, eax
add ebx, ecx
mov eax, ebx
sub eax, ecx
imul eax, dword [esi + 0x179ac]
add eax, ecx
jmp 0x4aaf1c
mov dword [esi + 0x179e4], 0
mov ebp, dword [esp + 0x1c]
sub edi, eax
mov dword [esp + 0x10], edi
mov eax, dword [esi + 0x17990]
mov edx, dword [esi + 0x17994]
xor edi, edi
lea ecx, [eax - 1]
cmp eax, edi
mov dword [esi + 0x1799c], ecx
mov ecx, dword [esi + edx*4 + 0x17378]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edi
jle 0x4ab0ca
mov ecx, dword [esp + 0x38]
lea edx, [esi + 0x17378]
mov dword [esp + 0x80], edx
cmp edi, dword [esi + 0x17998]
jl 0x4ab060
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4aaf7e
lea eax, [ecx + ebx]
jmp 0x4aaf99
mov eax, dword [esp + 0x80]
mov eax, dword [eax]
lea edx, [eax + eax*4]
lea eax, [eax + edx*2]
shl eax, 5
mov eax, dword [eax + esi + 0x1494]
add eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x40], eax
test ecx, ecx
jle 0x4aafaf
inc eax
dec ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x10], ecx
cmp eax, dword [esp + 0x50]
jg 0x4ab082
mov edx, dword [esp + 0x80]
lea ecx, [esp + 0x38]
push ecx
mov eax, dword [edx]
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
shl edx, 5
lea eax, [edx + esi + 0x1484]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
cmp dword [esi + 0x17994], edi
jne 0x4ab000
lea ecx, [esp + 0x38]
lea edx, [esp + 0x68]
push ecx
push edx
call dword [sym.imp.USER32.dll_CopyRect]
mov dword [esp + 0x18], 1
jmp 0x4ab050
mov eax, dword [esp + 0x84]
cmp eax, 0xffffffff
jne 0x4ab01f
mov eax, dword [esp + 0x80]
push 1
lea edx, [esp + 0x3c]
mov ecx, dword [eax]
push ecx
push edx
jmp 0x4ab048
cmp edi, eax
je 0x4ab037
lea ecx, [eax - 1]
cmp edi, ecx
je 0x4ab037
inc eax
cmp edi, eax
je 0x4ab037
cmp edi, dword [esi + 0x1799c]
jne 0x4ab050
mov edx, dword [esp + 0x80]
push 1
lea ecx, [esp + 0x3c]
mov eax, dword [edx]
push eax
push ecx
push ebp
mov ecx, esi
call fcn.004ab570
mov ecx, dword [esp + 0x40]
mov eax, dword [esi + 0x1338]
sub ecx, eax
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x80]
mov eax, dword [esi + 0x17990]
inc edi
add edx, 4
cmp edi, eax
mov dword [esp + 0x80], edx
jl 0x4aaf65
jmp 0x4ab0ae
lea edx, [edi - 1]
lea eax, [esp + 0x38]
mov dword [esi + 0x1799c], edx
mov edi, dword [esi + edi*4 + 0x17378]
push eax
lea ecx, [edi + edi*4]
lea edx, [edi + ecx*2]
shl edx, 5
lea eax, [edx + esi + 0x1484]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4ab0ca
mov ecx, dword [esp + 0x1c]
push 1
lea edx, [esp + 0x6c]
push ecx
push edx
push ebp
mov ecx, esi
call fcn.004ab570
lea ecx, [esi + 0x1294]
call fcn.00464e40
test eax, eax
je 0x4ab1ab
call dword [sym.imp.USER32.dll_GetMessagePos]
movsx ecx, ax
shr eax, 0x10
movsx edx, ax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 4]
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], edx
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esi + 0x1298]
xor ebx, ebx
cdq
and edx, 3
mov dword [esi + 0x179c4], ebx
add eax, edx
mov edx, dword [esi + 0x1338]
mov edi, eax
mov eax, dword [esi + 0x1344]
sub edx, eax
mov eax, dword [esp + 0x38]
add eax, edx
sar edi, 2
mov dword [esp + 0x38], eax
add eax, edi
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x179a0]
cmp eax, 0xffffffff
jne 0x4ab177
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4ab177
mov eax, dword [esi + 0x179c0]
mov dword [esi + 0x179c4], 1
test eax, eax
lea ebx, [edi + edi]
jne 0x4ab177
mov ebx, edi
mov ecx, dword [esi + 0x129c]
push 0
push 0
push ecx
push edi
push 0
push ebx
lea edx, [esp + 0x50]
push 0
push edx
push ebp
lea ecx, [esi + 0x1294]
call fcn.00464460
lea eax, [esp + 0x38]
lea ecx, [esi + 0x12f0]
push eax
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
cmp dword [esi + 0x17b28], 0xffffffff
je 0x4ab1f9
lea edx, [esp + 0x38]
lea eax, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esi + 0x17b28]
mov ecx, dword [esi + 0x12b0]
push 0
push 0
push 0
push 0
push 0
add ecx, eax
push 0
lea edx, [esp + 0x34]
push 0
mov dword [esp + 0x40], ecx
push edx
push ebp
lea ecx, [esi + 0x12ac]
mov dword [esp + 0x40], eax
call fcn.00464460
mov edi, dword [esp + 0x7c]
mov eax, dword [esp + 0x84]
cmp eax, 0xffffffff
jne 0x4ab236
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov ebx, dword [esp + 0x58]
push 0xcc0020
push 0
push 0
sub eax, edx
push ebp
sub ecx, ebx
push eax
push ecx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x4ab2a9
mov eax, dword [esi + eax*4 + 0x17378]
push 0xcc0020
lea edx, [eax + eax*4]
lea eax, [eax + edx*2]
shl eax, 5
add eax, esi
mov ecx, dword [eax + 0x1488]
mov edx, dword [eax + 0x1484]
mov ebx, dword [eax + 0x1490]
mov eax, dword [eax + 0x148c]
push ecx
push edx
sub ebx, ecx
push ebp
sub eax, edx
push ebx
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
push eax
push ecx
push edx
push edi
call ebx
mov eax, dword [esi + 0x12f8]
cmp eax, 0xffffffff
je 0x4ab2a9
mov ecx, dword [esi + 0x12f4]
mov edx, dword [esi + 0x12f0]
mov esi, dword [esi + 0x12fc]
push 0xcc0020
push ecx
push edx
sub esi, ecx
push ebp
sub eax, edx
push esi
push eax
push ecx
push edx
push edi
call ebx
mov ecx, dword [esp + 0x2c]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push ecx
push ebp
call esi
mov edx, dword [esp + 0x30]
push edx
push ebp
call esi
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x68
ret 0xc