Function at 0x4211f0
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.00420520
test eax, eax
je 0x421792
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call fcn.00420520
test eax, eax
je 0x421792
lea edx, [esp + 0x68]
push edx
mov ecx, esi
call fcn.00420520
test eax, eax
je 0x421792
lea eax, [esp + 0x60]
push eax
mov ecx, esi
call fcn.00420520
test eax, eax
je 0x421792
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
call fcn.00420490
test eax, eax
je 0x421792
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x28]
and eax, 7
push edx
mov ecx, esi
mov dword [esp + 0x68], eax
call fcn.00420490
test eax, eax
je 0x421792
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.00420520
test eax, eax
je 0x421792
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00420520
test eax, eax
je 0x421792
lea edx, [esp + 0x44]
push edx
mov ecx, esi
call fcn.00420520
test eax, eax
je 0x421792
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.00420520
test eax, eax
je 0x421792
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call fcn.004204e0
test eax, eax
je 0x421792
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
call fcn.004204e0
test eax, eax
je 0x421792
cmp dword [esp + 0xa4], 1
je 0x421351
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.00405880
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.00420180
mov ebp, eax
mov eax, dword [ebp]
mov ecx, ebp
mov dword [esp + 0x60], ebp
call dword [eax + 4]
cmp eax, 2
je 0x421398
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.00405880
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 0x4213bb
lea ebx, [ebx]
shl eax, 1
inc edx
cmp eax, ecx
jb 0x4213b0
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 0x4213e3
push ebx
push edi
mov ecx, esi
call fcn.00420240
mov ecx, dword [esi + 0x38]
call fcn.0041d1a0
push 0x18
call fcn.0043f7ed
xor ebp, ebp
add esp, 4
cmp eax, ebp
je 0x421412
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.0041dc30
mov dword [esp + 0x20], eax
jmp 0x421418
mov dword [esp + 0x20], ebp
mov eax, ebp
mov cl, byte [esp + 0x2c]
test cl, cl
mov ecx, eax
jns 0x421429
call fcn.0041dd10
jmp 0x42142e
call fcn.0041dcf0
cmp dword [esp + 0x28], ebp
mov dword [esp + 0x18], ebp
je 0x4214fb
push 0x18
call fcn.0043f7ed
mov ebx, dword [esp + 0x20]
add esp, 4
cmp eax, ebp
je 0x421462
mov edx, dword [esp + 0x10]
push ebx
push edx
push ebp
mov ecx, eax
call fcn.0041dc30
mov dword [esp + 0x18], eax
jmp 0x421466
mov dword [esp + 0x18], ebp
mov ecx, dword [esp + 0x18]
call fcn.0041dcf0
cmp ebx, ebp
jbe 0x4214ff
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 0x4214e4
mov ecx, dword [esp + 0x4c]
add ecx, eax
sar ecx, 8
mov dword [esp + 0x54], ecx
lea ebx, [ebx]
test ecx, ecx
jle 0x4214c8
mov edx, eax
sar edx, 8
cmp edx, dword [esp + 0x14]
jge 0x4214c8
mov edx, dword [esp + 0x50]
add edx, edi
test edx, 0xffffff00
jle 0x4214c8
mov edx, edi
sar edx, 8
cmp edx, dword [esp + 0x38]
jl 0x4214db
mov ecx, dword [esp + 0x18]
push ebp
push esi
call fcn.0041dbf0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x10]
inc esi
cmp esi, edx
jb 0x4214a0
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 0x421483
jmp 0x4214ff
mov ebx, dword [esp + 0x1c]
mov esi, ebx
imul esi, dword [esp + 0x10]
shl esi, 2
push esi
call fcn.0043e620
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 0x42163e
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.0041e300
xor esi, esi
test ebx, ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x14], esi
jbe 0x421626
lea ebx, [ebx]
mov ecx, dword [esp + 0x10]
xor edi, edi
test ecx, ecx
jbe 0x421615
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.0041dba0
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 0x4215e0
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 0x4215d0
mov edi, dword [esp + 0x24]
test eax, eax
je 0x421632
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
dec dword [esp + 0x2c]
jne 0x421586
jmp 0x421642
mov edi, dword [esp + 0x24]
xor eax, eax
cmp ebx, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], eax
jbe 0x42170b
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 0x4216de
mov edi, edi
mov eax, dword [esp + 0x28]
test eax, eax
je 0x42168b
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
push esi
call fcn.0041dba0
test eax, eax
jne 0x4216b8
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.0041de10
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 0x421670
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 0x421664
mov edi, dword [esp + 0x24]
push ebp
call fcn.0043e6b0
mov eax, dword [esp + 0x9c]
add esp, 4
test eax, eax
je 0x421778
cmp dword [edi + 0x10], 0xffffffff
mov esi, dword [esp + 0x64]
jne 0x421743
mov eax, dword [esp + 0x38]
mov ecx, dword [edi + 0x14]
add eax, esi
cmp eax, ecx
jbe 0x421743
mov ecx, dword [edi + 0x18]
push ecx
mov ecx, dword [edi + 0x1c]
push eax
call fcn.0041dc70
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.0041de10
test esi, esi
je 0x42138b
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.0043ed70
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.00405880
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x80
ret 0x18