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

Disassembly:
push 0xffffffffffffffff
push 0x4dc218
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
push ebx
push ebp
mov ebp, ecx
push esi
xor esi, esi
push edi
mov eax, dword [ebp + 8]
mov dword [esp + 0x38], esi
cmp eax, esi
je 0x4a84ff
mov ecx, dword [eax]
lea edx, [esp + 0x38]
push edx
push 0x711460
push eax
call dword [ecx]
test eax, eax
jl 0x4a84ff
mov edi, dword [esp + 0xbc]
mov eax, dword [edi + 0x40]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x10]
cmp eax, esi
jle 0x4a7df3
cmp dword [edi + 0x14], esi
jg 0x4a7df7
mov dword [esp + 0x10], esi
mov eax, dword [edi + 0x2c]
cdq
mov ecx, eax
mov eax, dword [edi + 0x28]
xor ecx, edx
sub ecx, edx
cdq
mov dword [esp + 0x18], ecx
xor eax, edx
lea ecx, [esp + 0x14]
sub eax, edx
push ecx
mov ecx, dword [edi]
mov dword [esp + 0x18], eax
call fcn.004d2c0e
mov esi, dword [ebp + 0x10]
mov edx, dword [esp + 0x18]
mov eax, dword [edi + 0x30]
mov ebx, dword [esp + 0x14]
sub esi, edx
mov ecx, dword [edi]
cdq
xor eax, edx
mov dword [esp + 0x40], ebx
sub eax, edx
mov dword [esp + 0x74], esi
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x34]
cdq
xor eax, edx
sub eax, edx
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x1c], eax
call fcn.004d2c0e
mov eax, dword [edi + 0x30]
test eax, eax
je 0x4a7e6a
mov eax, dword [ebp + 0xc]
sub eax, ebx
mov ebx, dword [esp + 0x14]
cmp ebx, eax
jl 0x4a7e73
mov ebx, dword [ebp + 0xc]
mov eax, dword [esp + 0x40]
sub ebx, eax
mov eax, dword [edi + 0x34]
mov dword [esp + 0x48], ebx
test eax, eax
je 0x4a7e86
mov ebp, dword [esp + 0x18]
cmp ebp, esi
jl 0x4a7e88
mov ebp, esi
mov eax, ebx
lea ecx, [esp + 0x14]
cdq
xor eax, edx
push ecx
sub eax, edx
mov ecx, dword [edi]
neg ebp
mov dword [esp + 0x18], eax
mov eax, ebp
cdq
xor eax, edx
mov dword [esp + 0x48], ebp
sub eax, edx
mov dword [esp + 0x1c], eax
call fcn.004d2c29
test esi, esi
jle 0x4a84f5
test ebx, ebx
jle 0x4a84f5
test ebp, ebp
jge 0x4a84f5
mov esi, dword [edi + 0x10]
mov ebp, dword [edi + 0x14]
test esi, esi
jg 0x4a7ed6
mov esi, dword [esp + 0x14]
test ebp, ebp
jg 0x4a7ede
mov ebp, dword [esp + 0x18]
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov ebx, dword [sym.imp.GDI32.dll_LPtoDP]
mov dword [esp + 0x20], eax
mov eax, dword [edi]
mov dword [esp + 0x1c], ecx
lea edx, [esp + 0x1c]
push 1
mov eax, dword [eax + 8]
push edx
push eax
call ebx
mov eax, ebp
cdq
mov ecx, eax
mov eax, esi
xor ecx, edx
sub ecx, edx
cdq
mov dword [esp + 0x28], ecx
xor eax, edx
lea ecx, [esp + 0x24]
sub eax, edx
push ecx
mov ecx, dword [edi]
mov dword [esp + 0x28], eax
call fcn.004cfffe
mov ecx, dword [edi]
lea edx, [esp + 0x14]
push edx
call fcn.004cfffe
lea eax, [edi + 0x18]
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x8c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x90], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x94], ecx
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x8c]
push eax
mov dword [esp + 0x9c], edx
call dword [sym.imp.USER32.dll_IsRectEmpty]
neg eax
sbb eax, eax
inc eax
cmp eax, 1
mov dword [esp + 0x78], eax
jne 0x4a7f8a
mov eax, dword [edi]
lea ecx, [esp + 0x8c]
push 2
push ecx
mov edx, dword [eax + 8]
push edx
call ebx
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [edi]
push 1
mov edx, dword [ecx]
call dword [edx + 0x34]
mov eax, dword [0x771064]
xor ebx, ebx
cmp eax, 2
mov dword [esp + 0x34], ebx
je 0x4a8002
cmp dword [edi + 0x44], ebx
jne 0x4a8002
mov esi, dword [esp + 0x10]
cmp esi, ebx
jne 0x4a8006
mov edx, dword [esp + 0x44]
push ebx
add edx, 0x28
mov eax, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x80]
push edx
mov edx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
mov ecx, dword [eax]
push edx
mov edx, dword [edi]
mov edx, dword [edx + 4]
push edx
push eax
call dword [ecx + 0x20]
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
jmp 0x4a84dc
mov esi, dword [esp + 0x10]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], 0x710118
mov eax, dword [edi]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ecx
mov eax, dword [eax + 4]
push edx
push eax
mov dword [esp + 0xc0], ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x60]
call fcn.004d0378
cmp eax, ebx
je 0x4a84b5
lea ecx, [esp + 0x4c]
call fcn.004cf73b
mov eax, dword [edi]
mov byte [esp + 0xb4], 1
cmp eax, ebx
jne 0x4a805c
xor eax, eax
jmp 0x4a805f
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x50]
call fcn.004cf7f2
mov ecx, dword [esp + 0x60]
lea eax, [esp + 0x5c]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esp + 0x50]
push eax
push ecx
call fcn.004cf933
mov eax, dword [edi + 0x44]
cmp eax, ebx
mov dword [esp + 0x3c], eax
jne 0x4a809c
mov dword [esp + 0x3c], 0xcc0020
cmp esi, ebx
jne 0x4a80b5
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], esi
jmp 0x4a81a4
cmp esi, 0xb
je 0x4a8131
cmp esi, 0xc
je 0x4a8131
mov eax, dword [edi + 0x38]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x2c], ebp
test eax, eax
mov dword [esp + 0x30], esi
je 0x4a80f2
imul eax, ebp
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov ebp, edx
mov dword [esp + 0x2c], ebp
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x4a8115
imul eax, esi
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov esi, edx
mov dword [esp + 0x30], esi
test ebp, ebp
jg 0x4a8122
mov ebp, 1
mov dword [esp + 0x2c], ebp
test esi, esi
jg 0x4a81a4
mov esi, 1
mov dword [esp + 0x30], esi
jmp 0x4a81a4
fild dword [esp + 0x14]
fild dword [esp + 0x24]
fdiv st(1)
fild dword [esp + 0x18]
fst qword [esp + 0x7c]
fild dword [esp + 0x28]
fdiv st(1)
fstp qword [esp + 0x64]
fstp st(0)
fcom qword [esp + 0x64]
fnstsw ax
test ah, 1
jne 0x4a8160
fstp st(0)
fld qword [esp + 0x64]
fxch st(1)
fmul st(1)
call fcn.004b7758
fld qword [esp + 0x7c]
fmul st(1)
mov ebp, eax
mov dword [esp + 0x2c], ebp
call fcn.004b7758
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, 0xb
mov dword [esp + 0x30], esi
fstp st(0)
jne 0x4a8195
mov dword [esp + 0x10], 0xa
jmp 0x4a81a4
cmp dword [esp + 0x10], 0xc
jne 0x4a81a4
mov dword [esp + 0x10], 5
mov eax, dword [edi + 4]
cmp eax, 0x7fffffff
je 0x4a8217
push eax
lea ecx, [esp + 0x68]
call fcn.004d0435
lea edx, [esp + 0x64]
lea ecx, [esp + 0x4c]
push edx
mov byte [esp + 0xb8], 2
call fcn.004cf986
push 0xf00021
push esi
mov ebx, eax
mov eax, dword [esp + 0x58]
push ebp
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_PatBlt]
push ebx
lea ecx, [esp + 0x50]
call fcn.004cf986
mov dword [esp + 0x64], 0x71010c
lea ecx, [esp + 0x64]
mov byte [esp + 0xb4], 3
call fcn.004d03cf
mov ebx, dword [esp + 0x34]
mov byte [esp + 0xb4], 1
jmp 0x4a822d
mov ecx, dword [esp + 0x50]
push 0xff0062
push esi
push ebp
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov ecx, dword [esp + 0x44]
push 0
add ecx, 0x28
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x80]
mov edx, dword [eax]
push ecx
mov ecx, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x64]
push esi
push ebp
push 0
push 0
push ecx
push eax
call dword [edx + 0x20]
test eax, eax
jne 0x4a84a4
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x4a82a3
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x4c]
neg eax
sbb eax, eax
mov ecx, dword [edi]
and eax, edx
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x20]
push 0
push 0
push eax
mov eax, dword [esp + 0x30]
push esi
push ebp
push eax
mov eax, dword [ecx + 4]
push edx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x4a849f
cmp edx, 0xa
jge 0x4a8354
mov eax, dword [esp + 0x24]
cmp ebp, eax
jle 0x4a82b6
mov ebp, eax
mov ecx, dword [esp + 0x28]
cmp esi, ecx
jle 0x4a82c0
mov esi, ecx
cmp edx, 1
je 0x4a82fb
cmp edx, 4
je 0x4a82fb
cmp edx, 7
je 0x4a82fb
cmp edx, 2
je 0x4a82ea
cmp edx, 5
je 0x4a82ea
cmp edx, 8
je 0x4a82ea
mov edx, dword [esp + 0x1c]
sub eax, ebp
add eax, edx
mov ebx, eax
jmp 0x4a82ff
sub eax, ebp
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [esp + 0x1c]
sar ebx, 1
add ebx, eax
jmp 0x4a82ff
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
cmp eax, 3
jg 0x4a830e
mov eax, dword [esp + 0x20]
jmp 0x4a832a
cmp eax, 6
jg 0x4a8322
mov eax, ecx
mov ecx, dword [esp + 0x20]
sub eax, esi
cdq
sub eax, edx
sar eax, 1
jmp 0x4a8328
mov eax, dword [esp + 0x20]
sub eax, esi
add eax, ecx
push dword [esp + 0x3c]
lea ecx, [esp + 0x50]
mov edx, dword [edi]
neg ecx
sbb ecx, ecx
push 0
and ecx, dword [esp + 0x58]
push 0
push ecx
mov ecx, dword [edx + 4]
push esi
push ebp
push eax
push ebx
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x4a849f
jne 0x4a849f
mov edx, dword [esp + 0x28]
xor ebp, ebp
test edx, edx
mov dword [esp + 0x10], esi
jle 0x4a849f
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
mov ecx, edx
sub ecx, ebp
cmp esi, ecx
jle 0x4a8380
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0x2c]
xor esi, esi
test eax, eax
jle 0x4a8493
sub eax, esi
cmp ebx, eax
jle 0x4a8396
mov ebx, eax
mov eax, dword [esp + 0x78]
test eax, eax
je 0x4a843b
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
lea eax, [edx + ebp]
mov edx, dword [esp + 0x1c]
add eax, ecx
lea ecx, [esi + ebx]
add ecx, edx
mov edx, dword [esp + 0x20]
add edx, ebp
mov dword [esp + 0x88], eax
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x1c]
add edx, esi
mov dword [esp + 0x84], ecx
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x7c]
mov dword [esp + 0x80], edx
lea ecx, [esp + 0x8c]
push eax
lea edx, [esp + 0x68]
push ecx
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x6c]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x9c]
mov dword [esp + 0xa4], edx
push ecx
mov dword [esp + 0xac], eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x4a847d
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
lea ecx, [edx + ebp]
lea edx, [esi + eax]
lea eax, [esp + 0x4c]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x50]
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [esp + 0x3c]
push edx
push 0
push 0
push eax
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [edi]
push ebx
push ecx
mov ecx, dword [esp + 0x50]
mov edx, dword [eax + 4]
push ecx
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
add esi, edx
cmp esi, eax
jl 0x4a838e
mov edx, dword [esp + 0x28]
add ebp, dword [esp + 0x30]
cmp ebp, edx
jl 0x4a8370
mov ebx, 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0xb4], 0
call fcn.004cf870
mov dword [esp + 0x5c], method.CGdiObject.virtual_0
lea ecx, [esp + 0x5c]
mov dword [esp + 0xb4], 4
call fcn.004d03cf
mov dword [esp + 0xb4], 0xffffffff
mov edi, dword [edi]
push 0xffffffffffffffff
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x20]
mov eax, dword [esp + 0x38]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, ebx
jmp 0x4a8501
mov eax, dword [esp + 0x38]
push eax
mov edx, dword [eax]
call dword [edx + 8]
xor eax, eax
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa8
ret 4