Function at 0x421610
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.00420930
test eax, eax
je 0x421bb2
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call fcn.00420930
test eax, eax
je 0x421bb2
lea edx, [esp + 0x68]
push edx
mov ecx, esi
call fcn.00420930
test eax, eax
je 0x421bb2
lea eax, [esp + 0x60]
push eax
mov ecx, esi
call fcn.00420930
test eax, eax
je 0x421bb2
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
call fcn.004208a0
test eax, eax
je 0x421bb2
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x28]
and eax, 7
push edx
mov ecx, esi
mov dword [esp + 0x68], eax
call fcn.004208a0
test eax, eax
je 0x421bb2
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.00420930
test eax, eax
je 0x421bb2
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00420930
test eax, eax
je 0x421bb2
lea edx, [esp + 0x44]
push edx
mov ecx, esi
call fcn.00420930
test eax, eax
je 0x421bb2
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.00420930
test eax, eax
je 0x421bb2
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call fcn.004208f0
test eax, eax
je 0x421bb2
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
call fcn.004208f0
test eax, eax
je 0x421bb2
cmp dword [esp + 0xa4], 1
je 0x421771
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.004058d0
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.00420590
mov ebp, eax
mov eax, dword [ebp]
mov ecx, ebp
mov dword [esp + 0x60], ebp
call dword [eax + 4]
cmp eax, 2
je 0x4217b8
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.004058d0
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 0x4217db
lea ebx, [ebx]
shl eax, 1
inc edx
cmp eax, ecx
jb 0x4217d0
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 0x421803
push ebx
push edi
mov ecx, esi
call fcn.00420650
mov ecx, dword [esi + 0x38]
call fcn.0041d590
push 0x18
call fcn.0043a99d
xor ebp, ebp
add esp, 4
cmp eax, ebp
je 0x421832
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.0041e020
mov dword [esp + 0x20], eax
jmp 0x421838
mov dword [esp + 0x20], ebp
mov eax, ebp
mov cl, byte [esp + 0x2c]
test cl, cl
mov ecx, eax
jns 0x421849
call fcn.0041e100
jmp 0x42184e
call fcn.0041e0e0
cmp dword [esp + 0x28], ebp
mov dword [esp + 0x18], ebp
je 0x42191b
push 0x18
call fcn.0043a99d
mov ebx, dword [esp + 0x20]
add esp, 4
cmp eax, ebp
je 0x421882
mov edx, dword [esp + 0x10]
push ebx
push edx
push ebp
mov ecx, eax
call fcn.0041e020
mov dword [esp + 0x18], eax
jmp 0x421886
mov dword [esp + 0x18], ebp
mov ecx, dword [esp + 0x18]
call fcn.0041e0e0
cmp ebx, ebp
jbe 0x42191f
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 0x421904
mov ecx, dword [esp + 0x4c]
add ecx, eax
sar ecx, 8
mov dword [esp + 0x54], ecx
lea ebx, [ebx]
test ecx, ecx
jle 0x4218e8
mov edx, eax
sar edx, 8
cmp edx, dword [esp + 0x14]
jge 0x4218e8
mov edx, dword [esp + 0x50]
add edx, edi
test edx, 0xffffff00
jle 0x4218e8
mov edx, edi
sar edx, 8
cmp edx, dword [esp + 0x38]
jl 0x4218fb
mov ecx, dword [esp + 0x18]
push ebp
push esi
call fcn.0041dfe0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x10]
inc esi
cmp esi, edx
jb 0x4218c0
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 0x4218a3
jmp 0x42191f
mov ebx, dword [esp + 0x1c]
mov esi, ebx
imul esi, dword [esp + 0x10]
shl esi, 2
push esi
call fcn.004397e0
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 0x421a5e
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.0041e710
xor esi, esi
test ebx, ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x14], esi
jbe 0x421a46
lea ebx, [ebx]
mov ecx, dword [esp + 0x10]
xor edi, edi
test ecx, ecx
jbe 0x421a35
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.0041df90
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 0x421a00
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 0x4219f0
mov edi, dword [esp + 0x24]
test eax, eax
je 0x421a52
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
dec dword [esp + 0x2c]
jne 0x4219a6
jmp 0x421a62
mov edi, dword [esp + 0x24]
xor eax, eax
cmp ebx, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], eax
jbe 0x421b2b
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 0x421afe
mov edi, edi
mov eax, dword [esp + 0x28]
test eax, eax
je 0x421aab
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
push esi
call fcn.0041df90
test eax, eax
jne 0x421ad8
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.0041e200
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 0x421a90
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 0x421a84
mov edi, dword [esp + 0x24]
push ebp
call fcn.00439870
mov eax, dword [esp + 0x9c]
add esp, 4
test eax, eax
je 0x421b98
cmp dword [edi + 0x10], 0xffffffff
mov esi, dword [esp + 0x64]
jne 0x421b63
mov eax, dword [esp + 0x38]
mov ecx, dword [edi + 0x14]
add eax, esi
cmp eax, ecx
jbe 0x421b63
mov ecx, dword [edi + 0x18]
push ecx
mov ecx, dword [edi + 0x1c]
push eax
call fcn.0041e060
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.0041e200
test esi, esi
je 0x4217ab
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.00439f20
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.004058d0
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x80
ret 0x18