Function at 0x420250
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x80
push ebx
push esi
push edi
lea eax, [esp + 0x10]
mov esi, ecx
push eax
mov dword [esp + 0x24], esi
call fcn.0041f570
test eax, eax
je 0x4207f2
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call fcn.0041f570
test eax, eax
je 0x4207f2
lea edx, [esp + 0x68]
push edx
mov ecx, esi
call fcn.0041f570
test eax, eax
je 0x4207f2
lea eax, [esp + 0x60]
push eax
mov ecx, esi
call fcn.0041f570
test eax, eax
je 0x4207f2
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
call fcn.0041f4e0
test eax, eax
je 0x4207f2
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x28]
and eax, 7
push edx
mov ecx, esi
mov dword [esp + 0x68], eax
call fcn.0041f4e0
test eax, eax
je 0x4207f2
mov eax, dword [esp + 0x28]
mov ebx, eax
mov edi, eax
mov ecx, eax
shr eax, 4
shr ecx, 3
and eax, 7
and ecx, 1
mov dword [esp + 0x58], eax
shr edi, 1
lea eax, [esp + 0xc]
mov dword [esp + 0x24], ecx
and ebx, 1
and edi, 3
push eax
mov ecx, esi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x40], edi
call fcn.0041f570
test eax, eax
je 0x4207f2
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.0041f570
test eax, eax
je 0x4207f2
lea edx, [esp + 0x44]
push edx
mov ecx, esi
call fcn.0041f570
test eax, eax
je 0x4207f2
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.0041f570
test eax, eax
je 0x4207f2
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call fcn.0041f530
test eax, eax
je 0x4207f2
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
call fcn.0041f530
test eax, eax
je 0x4207f2
cmp dword [esp + 0xa4], 1
je 0x4203b1
mov eax, dword [esi]
push str.Bad_symbol_dictionary_reference_in_JBIG2_halftone_segment
mov ecx, esi
call dword [eax + 0x20]
push eax
call fcn.00405840
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x80
ret 0x18
mov ecx, dword [esp + 0xa0]
mov edx, dword [ecx]
push ebp
push edx
mov ecx, esi
call fcn.0041f1d0
mov ebp, eax
mov eax, dword [ebp]
mov ecx, ebp
mov dword [esp + 0x60], ebp
call dword [eax + 4]
cmp eax, 2
je 0x4203f8
mov edx, dword [esi]
push str.Bad_symbol_dictionary_reference_in_JBIG2_halftone_segment
mov ecx, esi
call dword [edx + 0x20]
push eax
call fcn.00405840
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x80
ret 0x18
mov ecx, dword [ebp + 8]
xor edx, edx
mov eax, 1
cmp ecx, eax
mov dword [esp + 0x3c], edx
jbe 0x42041b
lea ebx, [ebx]
shl eax, 1
inc edx
cmp eax, ecx
jb 0x420410
mov dword [esp + 0x3c], edx
test ebx, ebx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
jne 0x420443
push ebx
push edi
mov ecx, esi
call fcn.0041f290
mov ecx, dword [esi + 0x38]
call fcn.0041c1f0
push 0x18
call fcn.0043878d
xor ebp, ebp
add esp, 4
cmp eax, ebp
je 0x420472
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x98]
push edx
push ecx
mov ecx, eax
call fcn.0041cc80
mov dword [esp + 0x20], eax
jmp 0x420478
mov dword [esp + 0x20], ebp
mov eax, ebp
mov cl, byte [esp + 0x2c]
test cl, cl
mov ecx, eax
jns 0x420489
call fcn.0041cd60
jmp 0x42048e
call fcn.0041cd40
cmp dword [esp + 0x28], ebp
mov dword [esp + 0x18], ebp
je 0x42055b
push 0x18
call fcn.0043878d
mov ebx, dword [esp + 0x20]
add esp, 4
cmp eax, ebp
je 0x4204c2
mov edx, dword [esp + 0x10]
push ebx
push edx
push ebp
mov ecx, eax
call fcn.0041cc80
mov dword [esp + 0x18], eax
jmp 0x4204c6
mov dword [esp + 0x18], ebp
mov ecx, dword [esp + 0x18]
call fcn.0041cd40
cmp ebx, ebp
jbe 0x42055f
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x10]
xor esi, esi
test ecx, ecx
jbe 0x420544
mov ecx, dword [esp + 0x4c]
add ecx, eax
sar ecx, 8
mov dword [esp + 0x54], ecx
lea ebx, [ebx]
test ecx, ecx
jle 0x420528
mov edx, eax
sar edx, 8
cmp edx, dword [esp + 0x14]
jge 0x420528
mov edx, dword [esp + 0x50]
add edx, edi
test edx, 0xffffff00
jle 0x420528
mov edx, edi
sar edx, 8
cmp edx, dword [esp + 0x38]
jl 0x42053b
mov ecx, dword [esp + 0x18]
push ebp
push esi
call fcn.0041cc40
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x10]
inc esi
cmp esi, edx
jb 0x420500
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
inc ebp
add eax, esi
add edi, edx
cmp ebp, ebx
mov dword [esp + 0x2c], eax
jb 0x4204e3
jmp 0x42055f
mov ebx, dword [esp + 0x1c]
mov esi, ebx
imul esi, dword [esp + 0x10]
shl esi, 2
push esi
call fcn.004375c0
mov ebp, eax
xor eax, eax
mov ecx, esi
mov esi, dword [esp + 0x44]
mov edx, ecx
shr ecx, 2
mov edi, ebp
rep stosd dword es:[edi], eax
xor ecx, ecx
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, 1
add esp, 4
cmp eax, esi
sbb ecx, ecx
or eax, 0xffffffff
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov eax, 0xfffffffe
mov dword [esp + 0x78], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x3c]
add ecx, 3
dec eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], 0xfffffffd
mov dword [esp + 0x88], 2
js 0x42069e
inc eax
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
push 0xffffffffffffffff
lea edx, [esp + 0x74]
push edx
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x88]
push eax
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x6c]
push 0
push eax
push ebx
push ecx
push edx
mov ecx, edi
call fcn.0041d350
xor esi, esi
test ebx, ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x14], esi
jbe 0x420686
lea ebx, [ebx]
mov ecx, dword [esp + 0x10]
xor edi, edi
test ecx, ecx
jbe 0x420675
lea ebx, [ebx]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
mov ebx, dword [ebp + esi*4]
push eax
push edi
call fcn.0041cbf0
mov ecx, ebx
and ecx, 1
xor eax, ecx
lea edx, [ebx + ebx]
or eax, edx
mov dword [ebp + esi*4], eax
mov eax, dword [esp + 0x10]
inc esi
inc edi
cmp edi, eax
jb 0x420640
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
inc ecx
cmp ecx, ebx
mov dword [esp + 0x14], ecx
jb 0x420630
mov edi, dword [esp + 0x24]
test eax, eax
je 0x420692
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
dec dword [esp + 0x2c]
jne 0x4205e6
jmp 0x4206a2
mov edi, dword [esp + 0x24]
xor eax, eax
cmp ebx, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], eax
jbe 0x42076b
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], edi
mov eax, dword [esp + 0x10]
xor esi, esi
test eax, eax
jbe 0x42073e
mov edi, edi
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4206eb
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
push esi
call fcn.0041cbf0
test eax, eax
jne 0x420718
mov ecx, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x30]
mov edx, ebx
sar edx, 8
push edx
mov edx, dword [ebp + ecx*4]
mov eax, edi
sar eax, 8
push eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + edx*4]
mov ecx, dword [esp + 0x2c]
push edx
call fcn.0041ce60
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
sub ebx, eax
mov eax, dword [esp + 0x10]
add edi, ecx
inc edx
inc esi
cmp esi, eax
mov dword [esp + 0x2c], edx
jb 0x4206d0
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
inc eax
add edi, esi
add ebx, edx
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
jb 0x4206c4
mov edi, dword [esp + 0x24]
push ebp
call fcn.00437650
mov eax, dword [esp + 0x9c]
add esp, 4
test eax, eax
je 0x4207d8
cmp dword [edi + 0x10], 0xffffffff
mov esi, dword [esp + 0x64]
jne 0x4207a3
mov eax, dword [esp + 0x38]
mov ecx, dword [edi + 0x14]
add eax, esi
cmp eax, ecx
jbe 0x4207a3
mov ecx, dword [edi + 0x18]
push ecx
mov ecx, dword [edi + 0x1c]
push eax
call fcn.0041ccc0
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
mov ecx, dword [edi + 0x1c]
push edx
push esi
mov esi, dword [esp + 0x28]
push eax
push esi
call fcn.0041ce60
test esi, esi
je 0x4203eb
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x80
ret 0x18
mov eax, dword [esp + 0x20]
mov ecx, dword [edi + 0x24]
push eax
call fcn.00437d10
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x80
ret 0x18
mov edx, dword [esi]
push str.Unexpected_EOF_in_JBIG2_stream
mov ecx, esi
call dword [edx + 0x20]
push eax
call fcn.00405840
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x80
ret 0x18