Function at 0x4ad650
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 0x4ad677
cmp eax, dword [esi + 0x17994]
jl 0x4adcd4
cmp eax, dword [esi + 0x17998]
jg 0x4adcd4
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.004a9940
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 0x4ad710
or eax, 0x40000
mov dword [esi + 0xfdc], eax
lea edx, [esp + 0x58]
mov ecx, esi
push edx
push ebp
call fcn.004afa90
mov eax, dword [esi + 0x1798c]
test eax, eax
je 0x4adbfd
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 0x4ad756
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 0x4ad76d
mov edx, dword [esi + 0x1348]
mov eax, dword [esp + 0x48]
add eax, edx
mov dword [esp + 0x48], eax
lea ecx, [esi + 0x1294]
call fcn.004681d0
test eax, eax
je 0x4ad79d
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.004b0a10
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 0x4ad7c5
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 0x4ad7fd
mov eax, dword [esp + 0x44]
mov ecx, dword [esi + 0x1224]
sub eax, ecx
mov dword [esp + 0x3c], eax
jmp 0x4ad80d
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 + 0x17b14]
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 0x4ad886
mov edx, dword [esi + 0x1338]
mov eax, dword [esi + 0x17b1c]
sub eax, edx
mov edx, dword [ebx]
sub eax, edx
mov ebx, dword [esi + 0x1338]
cdq
idiv dword [esi + 0x1798c]
mov edx, dword [ecx + 0x3c]
add eax, ebx
cmp eax, edx
jae 0x4ad874
mov dword [esp + 0x14], 1
jmp 0x4ad886
lea eax, [esp + 0x38]
mov ecx, esi
push eax
push edi
push ebp
call fcn.004b0ef0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
xor ebx, ebx
test eax, eax
je 0x4ad926
mov ecx, dword [esi + 0x1338]
mov ebx, dword [esi + 0x1798c]
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 0x4ad8bc
mov ebx, edx
mov eax, dword [eax + 0x3c]
mov dword [esp + 0x18], ebx
cmp ebx, eax
mov dword [esp + 0x80], eax
jg 0x4ad8d0
mov ebx, eax
mov eax, ebx
mov edx, dword [esp + 0x80]
sub eax, ecx
imul eax, dword [esi + 0x1798c]
add eax, ecx
cmp dword [esp + 0x18], edx
jge 0x4ad912
mov ebx, dword [esi + 0x179a8]
mov eax, ebp
cdq
idiv ebx
mov dword [esi + 0x179e0], 1
mov ebx, eax
add ebx, ecx
mov eax, ebx
sub eax, ecx
imul eax, dword [esi + 0x179a8]
add eax, ecx
jmp 0x4ad91c
mov dword [esi + 0x179e0], 0
mov ebp, dword [esp + 0x1c]
sub edi, eax
mov dword [esp + 0x10], edi
mov eax, dword [esi + 0x1798c]
mov edx, dword [esi + 0x17990]
xor edi, edi
lea ecx, [eax - 1]
cmp eax, edi
mov dword [esi + 0x17998], ecx
mov ecx, dword [esi + edx*4 + 0x17374]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edi
jle 0x4adaca
mov ecx, dword [esp + 0x38]
lea edx, [esi + 0x17374]
mov dword [esp + 0x80], edx
cmp edi, dword [esi + 0x17994]
jl 0x4ada60
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4ad97e
lea eax, [ecx + ebx]
jmp 0x4ad999
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 + 0x1490]
add eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x40], eax
test ecx, ecx
jle 0x4ad9af
inc eax
dec ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x10], ecx
cmp eax, dword [esp + 0x50]
jg 0x4ada82
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 + 0x1480]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
cmp dword [esi + 0x17990], edi
jne 0x4ada00
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 0x4ada50
mov eax, dword [esp + 0x84]
cmp eax, 0xffffffff
jne 0x4ada1f
mov eax, dword [esp + 0x80]
push 1
lea edx, [esp + 0x3c]
mov ecx, dword [eax]
push ecx
push edx
jmp 0x4ada48
cmp edi, eax
je 0x4ada37
lea ecx, [eax - 1]
cmp edi, ecx
je 0x4ada37
inc eax
cmp edi, eax
je 0x4ada37
cmp edi, dword [esi + 0x17998]
jne 0x4ada50
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.004adf70
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 + 0x1798c]
inc edi
add edx, 4
cmp edi, eax
mov dword [esp + 0x80], edx
jl 0x4ad965
jmp 0x4adaae
lea edx, [edi - 1]
lea eax, [esp + 0x38]
mov dword [esi + 0x17998], edx
mov edi, dword [esi + edi*4 + 0x17374]
push eax
lea ecx, [edi + edi*4]
lea edx, [edi + ecx*2]
shl edx, 5
lea eax, [edx + esi + 0x1480]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4adaca
mov ecx, dword [esp + 0x1c]
push 1
lea edx, [esp + 0x6c]
push ecx
push edx
push ebp
mov ecx, esi
call fcn.004adf70
lea ecx, [esi + 0x1294]
call fcn.004681d0
test eax, eax
je 0x4adbab
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 + 0x179c0], 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 + 0x1799c]
cmp eax, 0xffffffff
jne 0x4adb77
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 0x4adb77
mov eax, dword [esi + 0x179bc]
mov dword [esi + 0x179c0], 1
test eax, eax
lea ebx, [edi + edi]
jne 0x4adb77
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.00467840
lea eax, [esp + 0x38]
lea ecx, [esi + 0x12f0]
push eax
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
cmp dword [esi + 0x17b24], 0xffffffff
je 0x4adbf9
lea edx, [esp + 0x38]
lea eax, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esi + 0x17b24]
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.00467840
mov edi, dword [esp + 0x7c]
mov eax, dword [esp + 0x84]
cmp eax, 0xffffffff
jne 0x4adc36
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 0x4adca9
mov eax, dword [esi + eax*4 + 0x17374]
push 0xcc0020
lea edx, [eax + eax*4]
lea eax, [eax + edx*2]
shl eax, 5
add eax, esi
mov ecx, dword [eax + 0x1484]
mov edx, dword [eax + 0x1480]
mov ebx, dword [eax + 0x148c]
mov eax, dword [eax + 0x1488]
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 0x4adca9
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