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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x516b87
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x559410]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push esi
push edi
mov eax, dword [0x559410]
xor eax, esp
push eax
lea eax, [esp + 0x168]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x58]
cmp eax, 3
ja case.default.0x407e58
jmp dword [eax*4 + 0x408230]
test ebx, ebx
je case.default.0x407e58
mov ecx, dword [edi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, dword [edi + 0x54]
mov esi, eax
mov dword [esp + 0x10], esi
mov edx, dword [ecx]
mov edx, dword [edx + 0x34]
call edx
test al, al
je 0x407f47
cmp dword [edi + 0x58], 1
jne 0x407f47
test esi, esi
je 0x407e9d
cmp ebx, esi
jae 0x407f47
mov ecx, dword [edi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xc]
cmp esi, eax
mov dword [esp + 0x14], eax
mov eax, dword [edi]
lea edx, [esp + 0x10]
lea ecx, [esp + 0x14]
cmovae ecx, edx
mov esi, dword [ecx]
mov ecx, edi
call dword [eax + 0xa4]
mov ecx, eax
lea eax, [edi + 0x48]
mov dword [esp + 0x14], esi
cmp dword [eax + 4], esi
jae 0x407ef8
mov edx, dword [ecx]
lea eax, [esp + 0x14]
push eax
push 0x55ac54
call dword [edx + 0x84]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x14], esi
jae 0x407eff
push esi
lea ecx, [edi + 0x48]
call fcn.00403770
lea eax, [edi + 0x48]
mov eax, dword [eax + 8]
mov dword [esp + 0x10], eax
push ebx
push dword [esp + 0x1c]
push eax
call fcn.004540d0
add esp, 0xc
mov eax, esi
sub eax, ebx
push eax
mov eax, dword [esp + 0x14]
add eax, ebx
push 0
push eax
call fcn.00455160
mov ecx, dword [edi + 0x54]
add esp, 0xc
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx]
push esi
push ebx
push ebx
call dword [eax + 0x20]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xa4]
push 1
push 0
push esi
push ebx
jmp 0x4080d2
test esi, esi
jne 0x407fc3
test al, al
je 0x407f87
push str.StreamTransformationFilter:_plaintext_length_is_not_a_multiple_of_block_size_and_NO_PADDING_is_specified
lea ecx, [esp + 0x3c]
call fcn.00405c80
lea eax, [esp + 0x38]
mov dword [esp + 0x170], esi
push eax
lea ecx, [esp + 0x9c]
call fcn.004058a0
push 0x555f18
lea eax, [esp + 0x9c]
push eax
call fcn.00453c81
push str.StreamTransformationFilter:_ciphertext_length_is_not_a_multiple_of_block_size
lea ecx, [esp + 0x6c]
call fcn.00405c80
lea eax, [esp + 0x68]
mov dword [esp + 0x170], 1
push eax
lea ecx, [esp + 0x114]
call fcn.00404800
push 0x555d54
lea eax, [esp + 0x114]
push eax
call fcn.00453c81
push dword [edi + 0x5c]
mov eax, dword [edi]
push ebx
push ecx
mov ecx, edi
call dword [eax + 0xa4]
push eax
lea ecx, [edi + 0x48]
call fcn.004068e0
mov ecx, dword [edi + 0x54]
mov esi, eax
push ebx
push dword [esp + 0x1c]
mov edx, dword [ecx]
push esi
call dword [edx + 0x20]
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0xa4]
jmp 0x4080cc
mov ecx, dword [edi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edx, dword [edi]
mov ecx, edi
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x5c]
mov dword [esp + 0x14], eax
call dword [edx + 0xa4]
mov esi, eax
lea ecx, [edi + 0x48]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
cmp dword [ecx + 4], eax
jae 0x408058
mov edx, dword [esi]
lea eax, [esp + 0x1c]
push eax
push 0x55ac54
mov ecx, esi
call dword [edx + 0x84]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x1c], eax
jae 0x40805b
push dword [esp + 0x14]
lea ecx, [edi + 0x48]
call fcn.00403770
lea ecx, [edi + 0x48]
mov esi, dword [ecx + 8]
mov ecx, dword [edi + 0x54]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
test al, al
je 0x4080ff
push ebx
push dword [esp + 0x1c]
push esi
call fcn.004540d0
add esp, 0xc
cmp dword [edi + 0x58], 2
jne 0x408097
mov ecx, dword [esp + 0x10]
mov eax, ecx
sub eax, ebx
push eax
mov al, cl
sub al, bl
movzx eax, al
push eax
lea eax, [ebx + esi]
jmp 0x4080aa
mov eax, dword [esp + 0x10]
sub eax, ebx
mov byte [ebx + esi], 0x80
dec eax
push eax
lea eax, [ebx + 1]
push 0
add eax, esi
push eax
call fcn.00455160
mov ecx, dword [edi + 0x54]
add esp, 0xc
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx]
push ebx
push esi
push esi
call dword [eax + 0x1c]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xa4]
push 1
push 0
push ebx
push esi
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x14]
mov ecx, dword [esp + 0x168]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.00453c72
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esp + 0x10]
cmp ebx, edx
je 0x408143
push str.StreamTransformationFilter:_ciphertext_length_is_not_a_multiple_of_block_size
lea ecx, [esp + 0x24]
call fcn.00405c80
lea eax, [esp + 0x20]
mov dword [esp + 0x170], 2
push eax
lea ecx, [esp + 0xc4]
call fcn.00404800
push 0x555d54
lea eax, [esp + 0xc4]
push eax
call fcn.00453c81
mov ecx, dword [edi + 0x54]
push edx
push dword [esp + 0x1c]
mov eax, dword [ecx]
push esi
call dword [eax + 0x1c]
cmp dword [edi + 0x58], 2
jne 0x4081d0
mov eax, dword [esp + 0x10]
mov dl, byte [esi + eax - 1]
lea ecx, [esi + eax]
cmp dl, 1
jb 0x408194
movzx ebx, dl
mov dword [esp + 0x14], ebx
cmp ebx, eax
ja 0x408194
mov ebx, eax
sub ebx, dword [esp + 0x14]
lea eax, [ebx + esi]
cmp eax, ecx
je 0x4080c2
cmp byte [eax], dl
jne 0x40818c
inc eax
cmp eax, ecx
jne 0x408183
cmp eax, ecx
je 0x4080c2
push str.StreamTransformationFilter:_invalid_PKCS_7_block_padding_found
lea ecx, [esp + 0x54]
call fcn.00405c80
lea eax, [esp + 0x50]
mov dword [esp + 0x170], 3
push eax
lea ecx, [esp + 0xec]
call fcn.00404800
push 0x555d54
lea eax, [esp + 0xec]
push eax
call fcn.00453c81
cmp ebx, 1
jbe 0x4081e2
cmp byte [esi + ebx - 1], 0
jne 0x4081e2
dec ebx
cmp ebx, 1
ja 0x4081d5
dec ebx
cmp byte [ebx + esi], 0x80
je 0x4080c2
push str.StreamTransformationFilter:_invalid_ones_and_zeros_padding_found
lea ecx, [esp + 0x84]
call fcn.00405c80
lea eax, [esp + 0x80]
mov dword [esp + 0x170], 4
push eax
lea ecx, [esp + 0x13c]
call fcn.00404800
push 0x555d54
lea eax, [esp + 0x13c]
push eax
call fcn.00453c81
nop
pop edi
jle fcn.00408273
add byte [edi + 0x7e], bl
inc eax
add dl, bh
jg 0x40827b
add dl, bh
jg 0x40827f
add byte [esi - 0x75], dl
int1
cmp byte [esi + 0x10], 0
jne 0x40825c
mov eax, dword [esi]
mov eax, dword [eax + 0x40]
call eax
test al, al
jne 0x40825c
mov byte [esi + 0x10], 1
mov al, 1
pop esi
ret
xor al, al
pop esi
ret
add byte [ebx], dh
les ecx, [ecx + 0x565c2444]
inc esp
and al, 0x5c