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

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x1f0
push ebx
push esi
push edi
lea eax, [ebp + 0xc]
push eax
xor edi, edi
push str.HalftoneMode
push 0x66e988
mov dword [ebp + 0x64], edi
mov dword [ebp + 0x50], edi
mov dword [ebp + 0x44], edi
mov dword [ebp + 0x5c], edi
mov dword [ebp + 0x58], edi
call fcn.004616c0
mov ecx, dword [ebp + 0x78]
mov ebx, dword [ebp + 0xc]
mov esi, eax
mov eax, dword [0x6bf220]
mov edx, dword [eax + 0x1cc]
mov eax, dword [eax + 0x1c8]
push 0x7fffffff
push 0x80000000
push edx
neg esi
push eax
sbb esi, esi
mov dword [ebp + 0x4c], edi
mov edi, dword [ebp + 0x74]
push ecx
and esi, ebx
push edi
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x38], edi
mov dword [ebp + 0x3c], ecx
call fcn.00466b10
mov ebx, eax
mov eax, dword [0x6bed3c]
add esp, 0x24
test eax, eax
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x2c], 0
je 0x4f4cc6
test esi, esi
jle 0x4f4c49
mov ecx, dword [ebp + 0x78]
mov edx, edi
push ecx
push edx
mov eax, 1
mov edi, ebx
call fcn.004f4ab0
mov eax, dword [0x6bed3c]
mov edi, dword [ebp + 0x74]
mov dword [ebp + 0x58], eax
jmp 0x4f4cd0
cmp ebx, 0x64
jne 0x4f4cc0
mov ecx, dword [0x6827d8]
mov edx, dword [0x6827dc]
mov dword [ebp + 0x18], ecx
lea ecx, [ebp + 0x18]
push ecx
mov ecx, dword [ebp + 0x78]
mov dword [ebp + 0x1c], edx
lea edx, [ebp + 0x30]
push edx
push ecx
push edi
mov dword [ebp + 0x34], 0
mov dword [ebp + 0x28], ebx
call eax
add esp, 0x10
test eax, eax
mov dword [ebp + 0x2c], eax
je 0x4f4ca4
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
push eax
push edi
mov dword [ebp + 0x4c], 1
mov dword [ebp + 0x74], edi
mov dword [ebp + 0x78], eax
call fcn.004f2500
mov ebx, eax
mov dword [ebp + 0x48], ebx
jmp 0x4f4cd0
lea edx, [ebp + 0x58]
push edx
push 0x64
call fcn.004f40e0
mov eax, dword [ebp + 0x58]
add esp, 8
test eax, eax
jne 0x4f4cde
call fcn.004856f0
jmp 0x4f4cd3
lea eax, [ebp + 0x58]
push eax
jmp 0x4f4cca
lea ecx, [ebp + 0x58]
push ecx
push ebx
call fcn.004f40e0
add esp, 8
mov eax, dword [ebp + 0x58]
test eax, eax
je 0x4f4d6a
mov edx, dword [0x6827d8]
mov eax, dword [0x6827dc]
lea ecx, [ebp + 0x20]
push ecx
mov dword [ebp + 0x20], edx
lea edx, [ebp + 0x30]
mov dword [ebp + 0x24], eax
mov eax, dword [ebp + 0x78]
push edx
push eax
push edi
mov dword [ebp + 0x34], 0
mov dword [ebp + 0x28], ebx
call dword [ebp + 0x58]
add esp, 0x10
test eax, eax
mov dword [ebp + 0x2c], eax
jne 0x4f4d1e
test esi, esi
jne 0x4f4d6a
call fcn.004856f0
jmp 0x4f4d6a
mov edx, dword [ebp + 0x58]
mov esi, dword [0x6bed3c]
mov eax, dword [ebp + 0x24]
mov edi, dword [ebp + 0x20]
xor ecx, ecx
cmp edx, esi
sete cl
push 0x7fffffff
push 0x80000000
mov dword [ebp + 0x74], edi
mov dword [ebp + 0x78], eax
mov dword [ebp + 0x4c], ecx
mov ecx, dword [0x6bf220]
mov edx, dword [ecx + 0x1cc]
mov ecx, dword [ecx + 0x1c8]
push edx
push ecx
push eax
push edi
call fcn.00466b10
mov ebx, eax
add esp, 0x18
mov dword [ebp + 0x48], ebx
xor esi, esi
cmp ebx, 5
mov dword [ebp + 0x68], esi
jne 0x4f4d8a
mov eax, dword [ebp + 0x78]
lea edx, [ebp + 0x5c]
push edx
push 0x4f3070
push eax
push edi
call fcn.00487110
add esp, 0x10
mov eax, dword [ebp + 0x5c]
mov ecx, dword [0x6bf1f4]
add eax, 5
mov dword [ebp + 0x5c], eax
mov edx, dword [ecx + 0xd4]
mov eax, dword [edx + 0x1c]
movzx ecx, byte [eax + eax*4 + str.7d8_r]
cmp ecx, esi
mov dword [ebp + 0x54], ecx
jne 0x4f4dbf
dec eax
neg eax
sbb eax, eax
and eax, 0xffffffd4
add eax, 0x37
mov dword [ebp + 0x54], eax
mov eax, dword [ebp + 0x5c]
call fcn.004f1820
mov ecx, dword [ebp + 0x78]
mov edx, dword [ebp + 0x7c]
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov byte [eax + 0x14], bl
mov dword [ebp + 0x60], eax
mov dword [eax + 0x20], edx
call fcn.00441210
mov ecx, dword [eax]
lea edx, [ebp - 0x44]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], esi
mov dword [ebp + 0x14], eax
mov dword [eax], edx
lea eax, [ebp - 0x34]
push esi
push eax
call sub.MSVCR71.dll__setjmp3
add esp, 8
test eax, eax
jne 0x4f51a6
mov eax, dword [ebp + 0x5c]
cmp eax, 5
jg 0x4f4e25
lea edi, [ebp - 0x184]
lea ecx, [ebp - 0xe4]
lea edx, [ebp - 0x6c]
mov dword [ebp + 0x64], edi
mov dword [ebp + 0x50], ecx
jmp 0x4f4e6f
mov ecx, dword [0x6bf274]
mov edx, dword [ecx]
mov edi, eax
lea ebx, [eax*8]
lea eax, [eax + eax*2]
shl eax, 3
shl edi, 5
add eax, edi
add eax, ebx
push eax
push ecx
call dword [edx]
mov esi, eax
add esp, 8
test esi, esi
mov dword [ebp + 0x44], esi
jne 0x4f4e58
call fcn.004856f0
add edi, ebx
add edi, esi
lea eax, [ebx + esi]
mov dword [ebp + 0x64], eax
mov eax, dword [ebp + 0x5c]
mov dword [ebp + 0x50], edi
mov ecx, edi
mov edi, dword [ebp + 0x64]
mov edx, esi
xor esi, esi
test eax, eax
jle 0x4f4eab
mov eax, edi
jmp 0x4f4e80
mov ebx, dword [0x682788]
mov dword [ecx], ebx
mov ebx, dword [0x68278c]
mov dword [ecx + 4], ebx
mov dword [eax + 0x1c], edx
and dword [eax], 0xfffffffb
mov ebx, dword [ebp + 0x5c]
inc esi
add ecx, 0x18
add edx, 8
add eax, 0x20
cmp esi, ebx
jl 0x4f4e80
mov ecx, dword [ebp + 0x50]
mov esi, dword [ebp + 0x60]
mov eax, dword [esi + 0x14]
and eax, 0xff
dec eax
cmp eax, 0xf
ja case.0x4f4ec7.7
movzx edx, byte [eax + 0x4f5258]
jmp dword [edx*4 + 0x4f5234]
mov eax, dword [ebp + 0x54]
push ecx
mov ecx, dword [0x6bf220]
push edi
push 0x91
lea edx, [ecx + eax*8]
mov eax, dword [ebp + 0x78]
mov ecx, dword [ebp + 0x74]
push edx
push 4
push eax
push ecx
push esi
lea eax, [ebp + 0x68]
call fcn.004f2190
add esp, 0x20
jmp 0x4f4fe4
push edi
lea edi, [ebp + 0x68]
mov ebx, ecx
call fcn.004f2420
mov esi, dword [ebp + 0x60]
mov edi, dword [ebp + 0x64]
add esp, 4
jmp 0x4f4fe4
mov edx, dword [ebp + 0x54]
mov eax, dword [0x6bf220]
push edi
push 0xa0
lea ecx, [eax + edx*8]
mov edx, dword [ebp + 0x78]
mov eax, dword [ebp + 0x74]
push ecx
push edx
push eax
jmp 0x4f4f7d
push edi
lea edi, [ebp + 0x68]
call fcn.004f2820
mov esi, dword [ebp + 0x60]
mov edi, dword [ebp + 0x64]
add esp, 4
jmp 0x4f4fe4
mov ecx, dword [ebp + 0x50]
mov eax, dword [ebp + 0x60]
lea esi, [ebp + 0x68]
call fcn.004f2f20
mov esi, dword [ebp + 0x60]
mov edi, dword [ebp + 0x64]
jmp 0x4f4fe4
mov ecx, dword [ebp + 0x54]
mov edx, dword [0x6bf220]
push edi
push 0xa0
lea eax, [edx + ecx*8]
mov ecx, dword [ebp + 0x78]
mov edx, dword [ebp + 0x74]
push eax
push ecx
push edx
lea ecx, [ebp + 0x68]
mov ebx, 4
mov eax, esi
call fcn.004f2720
add esp, 0x14
jmp 0x4f4fe4
mov ecx, dword [0x6bf220]
mov eax, dword [ebp + 0x54]
lea edx, [ecx + eax*8]
mov eax, dword [ebp + 0x78]
mov ecx, dword [ebp + 0x74]
push edi
push edx
push eax
push ecx
push esi
lea ecx, [ebp + 0x68]
mov ebx, 4
call fcn.004f28f0
add esp, 0x14
jmp 0x4f4fe4
mov eax, dword [0x6bf220]
mov edx, dword [ebp + 0x54]
push edi
lea ecx, [eax + edx*8]
mov edx, dword [ebp + 0x78]
mov eax, dword [ebp + 0x74]
push ecx
push 4
push edx
push eax
push esi
lea ecx, [ebp + 0x68]
call fcn.004f2b50
add esp, 0x18
jmp 0x4f4fe4
call fcn.00485770
mov eax, dword [ebp + 0x4c]
test eax, eax
je 0x4f5004
mov eax, dword [ebp + 0x68]
xor ecx, ecx
test eax, eax
jle 0x4f5004
mov eax, edi
and dword [eax], 0xfffffffe
mov edx, dword [ebp + 0x68]
inc ecx
add eax, 0x20
cmp ecx, edx
jl 0x4f4ff6
mov edx, dword [esi + 0x18]
mov cl, byte [edx + 0x24]
xor eax, eax
mov bl, 0xff
cmp cl, bl
setne al
dec eax
and eax, 4
je 0x4f5032
cmp cl, bl
jne 0x4f5032
lea ecx, [eax + eax*4]
lea esi, [edx + ecx*8]
mov ecx, 0xa
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x60]
mov edi, dword [ebp + 0x64]
cmp eax, 1
je 0x4f5055
mov ecx, dword [esi + 0x18]
cmp byte [ecx + 0x4c], bl
jne 0x4f5055
lea edx, [eax + eax*4]
lea esi, [ecx + edx*8]
lea edi, [ecx + 0x28]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x60]
mov edi, dword [ebp + 0x64]
cmp eax, 2
je 0x4f5078
mov ecx, dword [esi + 0x18]
cmp byte [ecx + 0x74], bl
jne 0x4f5078
lea edx, [eax + eax*4]
lea esi, [ecx + edx*8]
lea edi, [ecx + 0x50]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x60]
mov edi, dword [ebp + 0x64]
cmp eax, 3
je 0x4f509e
mov ecx, dword [esi + 0x18]
cmp byte [ecx + 0x9c], bl
jne 0x4f509e
lea edx, [eax + eax*4]
lea esi, [ecx + edx*8]
lea edi, [ecx + 0x78]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x60]
mov edi, dword [ebp + 0x64]
cmp eax, 4
je 0x4f50c7
mov ecx, dword [esi + 0x18]
cmp byte [ecx + 0xc4], bl
jne 0x4f50c7
lea eax, [eax + eax*4]
lea esi, [ecx + eax*8]
lea edi, [ecx + 0xa0]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x60]
mov edi, dword [ebp + 0x64]
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x48]
cmp ecx, eax
mov edx, dword [ebp + 0x10]
jne 0x4f50d8
test edx, edx
jle 0x4f50e7
mov ebx, dword [ebp + 0x38]
mov byte [esi + 0x14], al
mov dword [esi + 4], ebx
mov ebx, dword [ebp + 0x3c]
mov dword [esi + 8], ebx
cmp ecx, eax
jne 0x4f50fa
test edx, edx
jg 0x4f50fa
mov eax, dword [ebp + 0x2c]
test eax, eax
jne 0x4f50fa
xor ecx, ecx
jmp 0x4f50fd
lea ecx, [ebp + 0x28]
mov edx, dword [0x6bf1f4]
mov eax, dword [edx + 0xd4]
mov edx, dword [eax]
push ecx
mov ecx, dword [0x6bf21c]
mov ebx, dword [ecx + 0x44]
mov ecx, dword [ecx + 0x3c]
push ebx
push ecx
mov ecx, dword [ebp + 0x5c]
push ecx
mov ecx, dword [ebp + 0x68]
push ecx
push edi
push eax
call dword [edx + 0x1c]
add esp, 0x1c
test eax, eax
mov dword [esi], eax
jne 0x4f5135
call fcn.004856f0
mov eax, dword [ebp + 0x68]
xor ebx, ebx
test eax, eax
jle 0x4f5173
mov edi, edi
test byte [edi], 4
je 0x4f5165
mov eax, dword [edi + 4]
and eax, 0xff
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + edx*8 + 0x14]
mov edx, dword [eax + edx*8 + 0x10]
push ecx
push edx
call fcn.004a90c0
add esp, 8
mov eax, dword [ebp + 0x68]
inc ebx
add edi, 0x20
cmp ebx, eax
jl 0x4f5140
mov edi, dword [ebp + 0x64]
mov eax, dword [ebp + 0x4c]
test eax, eax
je 0x4f5193
cmp dword [ebp + 0x40], 5
jne 0x4f5193
mov eax, dword [ebp + 0x3c]
mov ecx, dword [ebp + 0x38]
push eax
mov eax, dword [esi + 0x18]
push ecx
call fcn.004f30d0
add esp, 8
push esi
call fcn.004f1970
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x44]
add esp, 4
mov dword [edx], eax
jmp 0x4f51dd
mov esi, dword [ebp + 0x60]
call fcn.004f18b0
cmp dword [ebp + 0x5c], 5
jle 0x4f51ca
mov ecx, dword [ebp + 0x44]
test ecx, ecx
je 0x4f51ca
mov eax, dword [0x6bf274]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 8]
add esp, 8
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
push eax
push ecx
call fcn.0047e830
mov edi, dword [ebp + 0x64]
add esp, 8
mov eax, dword [ebp + 0x48]
cmp eax, 1
je 0x4f51ea
cmp eax, 5
jne 0x4f520b
mov eax, dword [ebp + 0x68]
xor esi, esi
test eax, eax
jle 0x4f520b
mov ebx, edi
mov edi, dword [ebp + 0x50]
call fcn.004f1fb0
mov eax, dword [ebp + 0x68]
inc esi
add edi, 0x18
add ebx, 0x20
cmp esi, eax
jl 0x4f51f8
cmp dword [ebp + 0x5c], 5
jle 0x4f5227
mov ecx, dword [ebp + 0x44]
test ecx, ecx
je 0x4f5227
mov eax, dword [0x6bf274]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 8]
add esp, 8
pop edi
pop esi
pop ebx
add ebp, 0x6c
mov esp, ebp
pop ebp
ret