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

Disassembly:
push 0xffffffffffffffff
push 0x4c4ae8
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 0x482dff
mov ecx, dword [eax]
lea edx, [esp + 0x38]
push edx
push 0x502e50
push eax
call dword [ecx]
test eax, eax
jl 0x482dff
mov edi, dword [esp + 0xbc]
mov eax, dword [edi + 0x40]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x10]
cmp eax, esi
jle 0x4826f3
cmp dword [edi + 0x14], esi
jg 0x4826f7
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.004ba8cd
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.004ba8cd
mov eax, dword [edi + 0x30]
test eax, eax
je 0x48276a
mov eax, dword [ebp + 0xc]
sub eax, ebx
mov ebx, dword [esp + 0x14]
cmp ebx, eax
jl 0x482773
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 0x482786
mov ebp, dword [esp + 0x18]
cmp ebp, esi
jl 0x482788
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.004ba8e8
test esi, esi
jle 0x482df5
test ebx, ebx
jle 0x482df5
test ebp, ebp
jge 0x482df5
mov esi, dword [edi + 0x10]
mov ebp, dword [edi + 0x14]
test esi, esi
jg 0x4827d6
mov esi, dword [esp + 0x14]
test ebp, ebp
jg 0x4827de
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.004b7e51
mov ecx, dword [edi]
lea edx, [esp + 0x14]
push edx
call fcn.004b7e51
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 0x48288a
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 [0x5828d4]
xor ebx, ebx
cmp eax, 2
mov dword [esp + 0x34], ebx
je 0x482902
cmp dword [edi + 0x44], ebx
jne 0x482902
mov esi, dword [esp + 0x10]
cmp esi, ebx
jne 0x482906
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 0x482ddc
mov esi, dword [esp + 0x10]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], 0x4fe3f8
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.004b81cb
cmp eax, ebx
je 0x482db5
lea ecx, [esp + 0x4c]
call fcn.004b758e
mov eax, dword [edi]
mov byte [esp + 0xb4], 1
cmp eax, ebx
jne 0x48295c
xor eax, eax
jmp 0x48295f
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x50]
call fcn.004b7645
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.004b7786
mov eax, dword [edi + 0x44]
cmp eax, ebx
mov dword [esp + 0x3c], eax
jne 0x48299c
mov dword [esp + 0x3c], 0xcc0020
cmp esi, ebx
jne 0x4829b5
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], esi
jmp 0x482aa4
cmp esi, 0xb
je 0x482a31
cmp esi, 0xc
je 0x482a31
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 0x4829f2
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 0x482a15
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 0x482a22
mov ebp, 1
mov dword [esp + 0x2c], ebp
test esi, esi
jg 0x482aa4
mov esi, 1
mov dword [esp + 0x30], esi
jmp 0x482aa4
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 0x482a60
fstp st(0)
fld qword [esp + 0x64]
fxch st(1)
fmul st(1)
call fcn.0049c2f8
fld qword [esp + 0x7c]
fmul st(1)
mov ebp, eax
mov dword [esp + 0x2c], ebp
call fcn.0049c2f8
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, 0xb
mov dword [esp + 0x30], esi
fstp st(0)
jne 0x482a95
mov dword [esp + 0x10], 0xa
jmp 0x482aa4
cmp dword [esp + 0x10], 0xc
jne 0x482aa4
mov dword [esp + 0x10], 5
mov eax, dword [edi + 4]
cmp eax, 0x7fffffff
je 0x482b17
push eax
lea ecx, [esp + 0x68]
call fcn.004b8288
lea edx, [esp + 0x64]
lea ecx, [esp + 0x4c]
push edx
mov byte [esp + 0xb8], 2
call fcn.004b77d9
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.004b77d9
mov dword [esp + 0x64], 0x4fe3ec
lea ecx, [esp + 0x64]
mov byte [esp + 0xb4], 3
call fcn.004b8222
mov ebx, dword [esp + 0x34]
mov byte [esp + 0xb4], 1
jmp 0x482b2d
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 0x482da4
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x482ba3
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 0x482d9f
cmp edx, 0xa
jge 0x482c54
mov eax, dword [esp + 0x24]
cmp ebp, eax
jle 0x482bb6
mov ebp, eax
mov ecx, dword [esp + 0x28]
cmp esi, ecx
jle 0x482bc0
mov esi, ecx
cmp edx, 1
je 0x482bfb
cmp edx, 4
je 0x482bfb
cmp edx, 7
je 0x482bfb
cmp edx, 2
je 0x482bea
cmp edx, 5
je 0x482bea
cmp edx, 8
je 0x482bea
mov edx, dword [esp + 0x1c]
sub eax, ebp
add eax, edx
mov ebx, eax
jmp 0x482bff
sub eax, ebp
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [esp + 0x1c]
sar ebx, 1
add ebx, eax
jmp 0x482bff
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
cmp eax, 3
jg 0x482c0e
mov eax, dword [esp + 0x20]
jmp 0x482c2a
cmp eax, 6
jg 0x482c22
mov eax, ecx
mov ecx, dword [esp + 0x20]
sub eax, esi
cdq
sub eax, edx
sar eax, 1
jmp 0x482c28
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 0x482d9f
jne 0x482d9f
mov edx, dword [esp + 0x28]
xor ebp, ebp
test edx, edx
mov dword [esp + 0x10], esi
jle 0x482d9f
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
mov ecx, edx
sub ecx, ebp
cmp esi, ecx
jle 0x482c80
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0x2c]
xor esi, esi
test eax, eax
jle 0x482d93
sub eax, esi
cmp ebx, eax
jle 0x482c96
mov ebx, eax
mov eax, dword [esp + 0x78]
test eax, eax
je 0x482d3b
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 0x482d7d
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 0x482c8e
mov edx, dword [esp + 0x28]
add ebp, dword [esp + 0x30]
cmp ebp, edx
jl 0x482c70
mov ebx, 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0xb4], 0
call fcn.004b76c3
mov dword [esp + 0x5c], method.CGdiObject.virtual_0
lea ecx, [esp + 0x5c]
mov dword [esp + 0xb4], 4
call fcn.004b8222
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 0x482e01
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