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

Disassembly:
push 0xffffffffffffffff
push 0x100683c7
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x10090730]
xor eax, esp
mov dword [esp + 0x174], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10090730]
xor eax, esp
push eax
lea eax, [esp + 0x18c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x19c]
mov ebx, dword [esp + 0x1a0]
mov ebp, ecx
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x58]
cmp eax, 3
ja case.default.0x10021c1b
jmp dword [eax*4 + 0x10022038]
test ebx, ebx
je case.default.0x10021c1b
mov ecx, dword [ebp + 0x54]
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
call eax
mov ecx, dword [ebp + 0x54]
mov edx, dword [ecx]
mov esi, eax
mov eax, dword [edx + 0x34]
mov dword [esp + 0x14], esi
call eax
test al, al
je 0x10021d02
cmp dword [ebp + 0x58], 1
jne 0x10021d02
test esi, esi
je 0x10021c62
cmp ebx, esi
jae 0x10021d02
mov ecx, dword [ebp + 0x54]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov dword [esp + 0x1c], eax
cmp esi, eax
lea eax, [esp + 0x1c]
jb 0x10021c7c
lea eax, [esp + 0x14]
mov edx, dword [ebp]
mov edi, dword [eax]
mov eax, dword [edx + 0xa4]
mov ecx, ebp
call eax
lea esi, [ebp + 0x48]
mov dword [esp + 0x14], edi
cmp dword [esi + 4], edi
jae 0x10021cbd
mov edx, dword [eax]
mov edx, dword [edx + 0x84]
lea ecx, [esp + 0x14]
push ecx
push 0x100ad534
mov ecx, eax
call edx
cmp dword [esp + 0x14], edi
jb 0x10021cb7
mov esi, eax
jmp 0x10021cc0
push edi
call fcn.100071b0
mov esi, dword [esi + 8]
mov eax, dword [esp + 0x18]
push ebx
push eax
push esi
call fcn.100434e0
mov ecx, edi
sub ecx, ebx
push ecx
push 0
add ebx, esi
push ebx
call fcn.10043bc0
mov ecx, dword [ebp + 0x54]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
add esp, 0x18
push edi
push esi
push esi
call eax
mov edx, dword [ebp]
mov eax, dword [edx + 0xa4]
mov ecx, ebp
call eax
push 1
push 0
push edi
jmp 0x10022004
test esi, esi
jne 0x10021d8f
test al, al
je 0x10021d47
push str.StreamTransformationFilter:_plaintext_length_is_not_a_multiple_of_block_size_and_NO_PADDING_is_specified
lea ecx, [esp + 0x5c]
call fcn.10002ba0
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x160]
push edx
mov dword [esp + 0x19c], esi
call fcn.100157f0
push 0x100875e8
lea eax, [esp + 0x160]
push eax
call fcn.10043d3c
push str.StreamTransformationFilter:_ciphertext_length_is_not_a_multiple_of_block_size
lea ecx, [esp + 0x78]
call fcn.10002ba0
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0xb0]
push edx
mov dword [esp + 0x19c], 1
call fcn.100157f0
push 0x100875f8
lea eax, [esp + 0xb0]
push eax
mov dword [esp + 0xb4], vtable.CryptoPP::InvalidCiphertext.0
call fcn.10043d3c
mov ecx, dword [ebp + 0x5c]
mov edx, dword [ebp]
mov eax, dword [edx + 0xa4]
push ecx
mov ecx, ebp
call eax
mov ecx, eax
mov edi, ebx
lea eax, [ebp + 0x48]
call fcn.10020400
mov ecx, dword [ebp + 0x54]
mov edx, dword [ecx]
mov edx, dword [edx + 0x20]
mov esi, eax
mov eax, dword [esp + 0x18]
push ebx
push eax
push esi
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 0xa4]
mov ecx, ebp
call edx
jmp 0x10021fff
mov ecx, dword [ebp + 0x54]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov edx, dword [ebp]
mov edi, dword [ebp + 0x5c]
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0xa4]
mov ecx, ebp
call eax
mov ecx, dword [esp + 0x14]
lea esi, [ebp + 0x48]
mov dword [esp + 0x1c], ecx
cmp dword [esi + 4], ecx
jae 0x10021e29
mov edx, dword [eax]
mov edx, dword [edx + 0x84]
lea ecx, [esp + 0x1c]
push ecx
push 0x100ad534
mov ecx, eax
call edx
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x1c], ecx
jb 0x10021e23
mov esi, eax
jmp 0x10021e2c
push edi
call fcn.100071b0
mov esi, dword [esi + 8]
mov ecx, dword [ebp + 0x54]
mov edx, dword [ecx]
mov eax, dword [edx + 0x34]
call eax
test al, al
je 0x10021ea6
mov ecx, dword [esp + 0x18]
push ebx
push ecx
push esi
call fcn.100434e0
add esp, 0xc
cmp dword [ebp + 0x58], 2
jne 0x10021e63
mov eax, dword [esp + 0x14]
mov edx, eax
sub al, bl
sub edx, ebx
movzx eax, al
push edx
push eax
add ebx, esi
push ebx
jmp 0x10021e76
mov ecx, dword [esp + 0x14]
sub ecx, ebx
dec ecx
push ecx
push 0
lea edx, [ebx + esi + 1]
mov byte [ebx + esi], 0x80
push edx
call fcn.10043bc0
mov edi, dword [esp + 0x20]
mov ecx, dword [ebp + 0x54]
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
add esp, 0xc
push edi
push esi
push esi
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 0xa4]
mov ecx, ebp
call edx
push 1
push 0
push edi
jmp 0x10022004
mov eax, dword [esp + 0x14]
cmp ebx, eax
je 0x10021ef6
push str.StreamTransformationFilter:_ciphertext_length_is_not_a_multiple_of_block_size
lea ecx, [esp + 0x40]
call fcn.10002ba0
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x134]
push edx
mov dword [esp + 0x19c], 2
call fcn.100157f0
push 0x100875f8
lea eax, [esp + 0x134]
push eax
mov dword [esp + method.CryptoPP::InvalidCiphertext.virtual_0], vtable.CryptoPP::InvalidCiphertext.0
call fcn.10043d3c
mov ecx, dword [ebp + 0x54]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push eax
push esi
call edx
cmp dword [ebp + 0x58], 2
jne 0x10021f8b
mov ebx, dword [esp + 0x14]
mov al, byte [esi + ebx - 1]
lea edi, [esi + ebx]
cmp al, 1
jb 0x10021f43
movzx ecx, al
cmp ecx, ebx
ja 0x10021f43
mov byte [esp + 0x19], al
mov eax, dword [esp + 0x18]
sub ebx, ecx
push eax
lea eax, [ebx + esi]
mov ecx, edi
call fcn.100223e0
add esp, 4
cmp eax, edi
je 0x10021ff2
push str.StreamTransformationFilter:_invalid_PKCS_7_block_padding_found
lea ecx, [esp + 0x24]
call fcn.10002ba0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0xdc]
push edx
mov dword [esp + 0x19c], 3
call fcn.100157f0
push 0x100875f8
lea eax, [esp + 0xdc]
push eax
mov dword [esp + 0xe0], vtable.CryptoPP::InvalidCiphertext.0
call fcn.10043d3c
cmp ebx, 1
jbe 0x10021f9d
cmp byte [esi + ebx - 1], 0
jne 0x10021f9d
dec ebx
cmp ebx, 1
ja 0x10021f90
dec ebx
cmp byte [ebx + esi], 0x80
je 0x10021ff2
push str.StreamTransformationFilter:_invalid_ones_and_zeros_padding_found
lea ecx, [esp + 0x94]
call fcn.10002ba0
lea ecx, [esp + 0x90]
push ecx
lea edx, [esp + 0x108]
push edx
mov dword [esp + 0x19c], 4
call fcn.100157f0
push 0x100875f8
lea eax, [esp + 0x108]
push eax
mov dword [esp + method.CryptoPP::InvalidCiphertext.virtual_0], vtable.CryptoPP::InvalidCiphertext.0
call fcn.10043d3c
mov edx, dword [ebp]
mov eax, dword [edx + 0xa4]
mov ecx, ebp
call eax
push 1
push 0
push ebx
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x14]
push esi
call eax
mov ecx, dword [esp + 0x18c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x174]
xor ecx, esp
call fcn.100444a1
add esp, 0x184
ret 8