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

Disassembly:
sub esp, 0x3c
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx + 0x20]
push ebx
push ebp
mov ebp, dword [esp + 0x50]
push esi
push edi
mov edi, dword [eax]
mov dword [esp + 0x10], edx
lea ecx, [edi + 1]
mov dword [eax], ecx
mov edx, dword [0x682788]
mov eax, dword [0x68278c]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x68]
mov ecx, edi
shl ecx, 5
lea esi, [ecx + edx]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x40], eax
mov eax, dword [0x6bf220]
lea ecx, [eax + ecx*8]
push ebp
push edx
lea ebx, [esp + 0x2c]
mov eax, esi
call fcn.004f20d0
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x4f225a
mov eax, dword [0x6bf220]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [esp + 0x54]
push 0
push ecx
push edx
push ebp
push eax
call fcn.00466d30
lea ecx, [eax + eax]
mov eax, dword [esi]
xor ecx, eax
and ecx, 2
mov edx, eax
xor edx, ecx
mov dword [esi], edx
call fcn.00466e30
lea edx, [esp + 0x78]
push edx
push str.HalftoneMode
push 0x66e988
call fcn.004616c0
mov ebx, dword [esp + 0x84]
add esp, 0x20
neg eax
sbb eax, eax
and eax, ebx
mov ebx, dword [esi]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ebx
xor ecx, ebx
and ecx, 1
xor eax, ecx
jmp 0x4f226f
mov edx, dword [0x6bf21c]
mov eax, dword [edx + 0x40]
mov ecx, dword [esi]
and eax, 1
shl eax, 1
and ecx, 0xfffffffc
or eax, ecx
mov ebx, dword [esp + 0x5c]
mov edx, eax
and edx, 0xffffffdf
mov ecx, edx
mov dword [esi], eax
and ecx, 0xffffffbb
cmp ebx, 5
mov dword [esi], edx
mov byte [esi + 4], bl
mov dword [esi], ecx
jge 0x4f2294
mov byte [esp + 0x48], bl
movzx edx, bl
jmp 0x4f22d3
mov ecx, dword [0x6bf1f4]
mov eax, dword [ecx + 0xd4]
mov edx, dword [esp + 0x60]
mov ecx, dword [edx + 4]
mov edx, dword [eax]
mov dword [esp + 0x64], ecx
movzx ecx, byte [ecx + 0x1a]
push 0
push 0
push ecx
mov ecx, dword [esp + 0x70]
mov ecx, dword [ecx + 4]
push ecx
push eax
call dword [edx + 0x34]
add esp, 0x14
test eax, eax
jne 0x4f22cc
or eax, 0xffffffff
mov byte [esp + 0x48], al
movzx edx, al
mov eax, dword [esi]
mov ecx, dword [esp + 0x60]
and eax, 0xfe01ffff
shl edx, 0x11
or edx, eax
mov eax, dword [esp + 0x10]
mov dword [esi], edx
mov edx, dword [ecx + 4]
test eax, eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x44], edx
jne 0x4f2306
mov edx, dword [esp + 0x54]
lea ecx, [edi + edi*2]
mov dword [eax + ecx*8], edx
mov dword [eax + ecx*8 + 4], ebp
mov edx, dword [esi + 8]
mov ebp, dword [esp + 0x50]
lea ecx, [edi + edi*2]
lea eax, [eax + ecx*8]
mov dword [eax + 8], edx
mov ecx, dword [esi + 0xc]
mov dword [eax + 0xc], ecx
mov edx, dword [esi + 0x10]
mov dword [eax + 0x10], edx
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x14], ecx
mov eax, dword [ebp + 0x18]
lea edx, [ebx + ebx*4]
lea edi, [eax + edx*8]
mov ecx, 0xa
lea esi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, eax
and edx, 0xf0
cmp dl, 0x90
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
jne 0x4f2382
mov edx, eax
and edx, 0xffff0000
cmp edx, 0x10000
jne 0x4f2382
test al, 8
je 0x4f2382
lea edx, [esp + 0x14]
push edx
push 0
push ecx
push eax
call fcn.004d0e30
mov eax, dword [esp + 0x24]
add esp, 0x10
cmp dword [esp + 0x10], 1
jne 0x4f2395
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
push 0
lea ecx, [esp + 0x18]
push 0
push ecx
mov dword [0x69b700], 0
call fcn.004f1d80
mov eax, dword [0x69b700]
add esp, 0xc
test eax, eax
je 0x4f23d8
mov eax, dword [esp + 0x14]
shr eax, 4
and eax, 0xf
cmp eax, 7
je 0x4f23cd
cmp eax, 3
jne 0x4f23d8
mov edx, dword [esp + 0x68]
mov dword [edx + 0x18], fcn.004f1c30
cmp dword [esp + 0x10], 1
jne 0x4f2409
mov ecx, dword [0x6bf288]
test ecx, ecx
je 0x4f2409
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x4f2409
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x30]
push edx
mov edx, dword [ebp + 0x10]
push edx
push ecx
call eax
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret