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

Disassembly:
push 0xffffffffffffffff
push 0x49e758
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 0x46eebf
mov ecx, dword [eax]
lea edx, [esp + 0x38]
push edx
push 0x5aa458
push eax
call dword [ecx]
test eax, eax
jl 0x46eebf
mov edi, dword [esp + 0xbc]
mov eax, dword [edi + 0x40]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x10]
cmp eax, esi
jle 0x46e7b3
cmp dword [edi + 0x14], esi
jg 0x46e7b7
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.004973d2
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.004973d2
mov eax, dword [edi + 0x30]
test eax, eax
je 0x46e82a
mov eax, dword [ebp + 0xc]
sub eax, ebx
mov ebx, dword [esp + 0x14]
cmp ebx, eax
jl 0x46e833
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 0x46e846
mov ebp, dword [esp + 0x18]
cmp ebp, esi
jl 0x46e848
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.004973ed
test esi, esi
jle 0x46eeb5
test ebx, ebx
jle 0x46eeb5
test ebp, ebp
jge 0x46eeb5
mov esi, dword [edi + 0x10]
mov ebp, dword [edi + 0x14]
test esi, esi
jg 0x46e896
mov esi, dword [esp + 0x14]
test ebp, ebp
jg 0x46e89e
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.00494dd9
mov ecx, dword [edi]
lea edx, [esp + 0x14]
push edx
call fcn.00494dd9
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 0x46e94a
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 [0x5dbbe4]
xor ebx, ebx
cmp eax, 2
mov dword [esp + 0x34], ebx
je 0x46e9c2
cmp dword [edi + 0x44], ebx
jne 0x46e9c2
mov esi, dword [esp + 0x10]
cmp esi, ebx
jne 0x46e9c6
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 0x46ee9c
mov esi, dword [esp + 0x10]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], 0x5a8bc8
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.00495153
cmp eax, ebx
je 0x46ee75
lea ecx, [esp + 0x4c]
call fcn.00494516
mov eax, dword [edi]
mov byte [esp + 0xb4], 1
cmp eax, ebx
jne 0x46ea1c
xor eax, eax
jmp 0x46ea1f
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x50]
call fcn.004945cd
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.0049470e
mov eax, dword [edi + 0x44]
cmp eax, ebx
mov dword [esp + 0x3c], eax
jne 0x46ea5c
mov dword [esp + 0x3c], 0xcc0020
cmp esi, ebx
jne 0x46ea75
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], esi
jmp 0x46eb64
cmp esi, 0xb
je 0x46eaf1
cmp esi, 0xc
je 0x46eaf1
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 0x46eab2
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 0x46ead5
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 0x46eae2
mov ebp, 1
mov dword [esp + 0x2c], ebp
test esi, esi
jg 0x46eb64
mov esi, 1
mov dword [esp + 0x30], esi
jmp 0x46eb64
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 0x46eb20
fstp st(0)
fld qword [esp + 0x64]
fxch st(1)
fmul st(1)
call fcn.0047e378
fld qword [esp + 0x7c]
fmul st(1)
mov ebp, eax
mov dword [esp + 0x2c], ebp
call fcn.0047e378
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, 0xb
mov dword [esp + 0x30], esi
fstp st(0)
jne 0x46eb55
mov dword [esp + 0x10], 0xa
jmp 0x46eb64
cmp dword [esp + 0x10], 0xc
jne 0x46eb64
mov dword [esp + 0x10], 5
mov eax, dword [edi + 4]
cmp eax, 0x7fffffff
je 0x46ebd7
push eax
lea ecx, [esp + 0x68]
call fcn.00495210
lea edx, [esp + 0x64]
lea ecx, [esp + 0x4c]
push edx
mov byte [esp + 0xb8], 2
call fcn.00494761
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.00494761
mov dword [esp + 0x64], 0x5a8bbc
lea ecx, [esp + 0x64]
mov byte [esp + 0xb4], 3
call fcn.004951aa
mov ebx, dword [esp + 0x34]
mov byte [esp + 0xb4], 1
jmp 0x46ebed
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 0x46ee64
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x46ec63
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 0x46ee5f
cmp edx, 0xa
jge 0x46ed14
mov eax, dword [esp + 0x24]
cmp ebp, eax
jle 0x46ec76
mov ebp, eax
mov ecx, dword [esp + 0x28]
cmp esi, ecx
jle 0x46ec80
mov esi, ecx
cmp edx, 1
je 0x46ecbb
cmp edx, 4
je 0x46ecbb
cmp edx, 7
je 0x46ecbb
cmp edx, 2
je 0x46ecaa
cmp edx, 5
je 0x46ecaa
cmp edx, 8
je 0x46ecaa
mov edx, dword [esp + 0x1c]
sub eax, ebp
add eax, edx
mov ebx, eax
jmp 0x46ecbf
sub eax, ebp
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [esp + 0x1c]
sar ebx, 1
add ebx, eax
jmp 0x46ecbf
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
cmp eax, 3
jg 0x46ecce
mov eax, dword [esp + 0x20]
jmp 0x46ecea
cmp eax, 6
jg 0x46ece2
mov eax, ecx
mov ecx, dword [esp + 0x20]
sub eax, esi
cdq
sub eax, edx
sar eax, 1
jmp 0x46ece8
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 0x46ee5f
jne 0x46ee5f
mov edx, dword [esp + 0x28]
xor ebp, ebp
test edx, edx
mov dword [esp + 0x10], esi
jle 0x46ee5f
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
mov ecx, edx
sub ecx, ebp
cmp esi, ecx
jle 0x46ed40
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0x2c]
xor esi, esi
test eax, eax
jle 0x46ee53
sub eax, esi
cmp ebx, eax
jle 0x46ed56
mov ebx, eax
mov eax, dword [esp + 0x78]
test eax, eax
je 0x46edfb
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 0x46ee3d
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 0x46ed4e
mov edx, dword [esp + 0x28]
add ebp, dword [esp + 0x30]
cmp ebp, edx
jl 0x46ed30
mov ebx, 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0xb4], 0
call fcn.0049464b
mov dword [esp + 0x5c], method.CGdiObject.virtual_0
lea ecx, [esp + 0x5c]
mov dword [esp + 0xb4], 4
call fcn.004951aa
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 0x46eec1
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