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

Disassembly:
push 0xffffffffffffffff
push 0x4a2898
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 0x46bd6f
mov ecx, dword [eax]
lea edx, [esp + 0x38]
push edx
push 0xb980d8
push eax
call dword [ecx]
test eax, eax
jl 0x46bd6f
mov edi, dword [esp + 0xbc]
mov eax, dword [edi + 0x40]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x10]
cmp eax, esi
jle 0x46b663
cmp dword [edi + 0x14], esi
jg 0x46b667
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.0049b2d1
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.0049b2d1
mov eax, dword [edi + 0x30]
test eax, eax
je 0x46b6da
mov eax, dword [ebp + 0xc]
sub eax, ebx
mov ebx, dword [esp + 0x14]
cmp ebx, eax
jl 0x46b6e3
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 0x46b6f6
mov ebp, dword [esp + 0x18]
cmp ebp, esi
jl 0x46b6f8
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.0049b2ec
test esi, esi
jle 0x46bd65
test ebx, ebx
jle 0x46bd65
test ebp, ebp
jge 0x46bd65
mov esi, dword [edi + 0x10]
mov ebp, dword [edi + 0x14]
test esi, esi
jg 0x46b746
mov esi, dword [esp + 0x14]
test ebp, ebp
jg 0x46b74e
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.004986f9
mov ecx, dword [edi]
lea edx, [esp + 0x14]
push edx
call fcn.004986f9
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 0x46b7fa
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 [0xbcb154]
xor ebx, ebx
cmp eax, 2
mov dword [esp + 0x34], ebx
je 0x46b872
cmp dword [edi + 0x44], ebx
jne 0x46b872
mov esi, dword [esp + 0x10]
cmp esi, ebx
jne 0x46b876
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 0x46bd4c
mov esi, dword [esp + 0x10]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], 0xb966b0
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.00498a73
cmp eax, ebx
je 0x46bd25
lea ecx, [esp + 0x4c]
call fcn.00497e36
mov eax, dword [edi]
mov byte [esp + 0xb4], 1
cmp eax, ebx
jne 0x46b8cc
xor eax, eax
jmp 0x46b8cf
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x50]
call fcn.00497eed
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.0049802e
mov eax, dword [edi + 0x44]
cmp eax, ebx
mov dword [esp + 0x3c], eax
jne 0x46b90c
mov dword [esp + 0x3c], 0xcc0020
cmp esi, ebx
jne 0x46b925
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], esi
jmp 0x46ba14
cmp esi, 0xb
je 0x46b9a1
cmp esi, 0xc
je 0x46b9a1
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 0x46b962
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 0x46b985
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 0x46b992
mov ebp, 1
mov dword [esp + 0x2c], ebp
test esi, esi
jg 0x46ba14
mov esi, 1
mov dword [esp + 0x30], esi
jmp 0x46ba14
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 0x46b9d0
fstp st(0)
fld qword [esp + 0x64]
fxch st(1)
fmul st(1)
call fcn.00480df8
fld qword [esp + 0x7c]
fmul st(1)
mov ebp, eax
mov dword [esp + 0x2c], ebp
call fcn.00480df8
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, 0xb
mov dword [esp + 0x30], esi
fstp st(0)
jne 0x46ba05
mov dword [esp + 0x10], 0xa
jmp 0x46ba14
cmp dword [esp + 0x10], 0xc
jne 0x46ba14
mov dword [esp + 0x10], 5
mov eax, dword [edi + 4]
cmp eax, 0x7fffffff
je 0x46ba87
push eax
lea ecx, [esp + 0x68]
call fcn.00498b30
lea edx, [esp + 0x64]
lea ecx, [esp + 0x4c]
push edx
mov byte [esp + 0xb8], 2
call fcn.00498081
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.00498081
mov dword [esp + 0x64], 0xb966a4
lea ecx, [esp + 0x64]
mov byte [esp + 0xb4], 3
call fcn.00498aca
mov ebx, dword [esp + 0x34]
mov byte [esp + 0xb4], 1
jmp 0x46ba9d
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 0x46bd14
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x46bb13
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 0x46bd0f
cmp edx, 0xa
jge 0x46bbc4
mov eax, dword [esp + 0x24]
cmp ebp, eax
jle 0x46bb26
mov ebp, eax
mov ecx, dword [esp + 0x28]
cmp esi, ecx
jle 0x46bb30
mov esi, ecx
cmp edx, 1
je 0x46bb6b
cmp edx, 4
je 0x46bb6b
cmp edx, 7
je 0x46bb6b
cmp edx, 2
je 0x46bb5a
cmp edx, 5
je 0x46bb5a
cmp edx, 8
je 0x46bb5a
mov edx, dword [esp + 0x1c]
sub eax, ebp
add eax, edx
mov ebx, eax
jmp 0x46bb6f
sub eax, ebp
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [esp + 0x1c]
sar ebx, 1
add ebx, eax
jmp 0x46bb6f
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
cmp eax, 3
jg 0x46bb7e
mov eax, dword [esp + 0x20]
jmp 0x46bb9a
cmp eax, 6
jg 0x46bb92
mov eax, ecx
mov ecx, dword [esp + 0x20]
sub eax, esi
cdq
sub eax, edx
sar eax, 1
jmp 0x46bb98
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 0x46bd0f
jne 0x46bd0f
mov edx, dword [esp + 0x28]
xor ebp, ebp
test edx, edx
mov dword [esp + 0x10], esi
jle 0x46bd0f
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
mov ecx, edx
sub ecx, ebp
cmp esi, ecx
jle 0x46bbf0
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0x2c]
xor esi, esi
test eax, eax
jle 0x46bd03
sub eax, esi
cmp ebx, eax
jle 0x46bc06
mov ebx, eax
mov eax, dword [esp + 0x78]
test eax, eax
je 0x46bcab
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 0x46bced
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 0x46bbfe
mov edx, dword [esp + 0x28]
add ebp, dword [esp + 0x30]
cmp ebp, edx
jl 0x46bbe0
mov ebx, 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0xb4], 0
call fcn.00497f6b
mov dword [esp + 0x5c], method.CGdiObject.virtual_0
lea ecx, [esp + 0x5c]
mov dword [esp + 0xb4], 4
call fcn.00498aca
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 0x46bd71
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