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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b107
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x258
push esi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 0x78]
test ecx, ecx
je 0x524ebe
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
xor edx, edx
div dword [ecx + 0x6c]
mov dword [ebp - 0x34], edx
mov edx, dword [ebp - 0x10]
add edx, 0x4c
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x74]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + 0xa8]
call edx
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x5c]
push eax
push 0x5915bc
mov ecx, dword [ebp - 0x60]
push ecx
mov ecx, dword [ebp - 0x64]
call fcn.00522830
mov dword [ebp - 0x24], eax
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 0x34]
mov dword [ebp + 0xc], edx
je 0x524de3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x64]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x64]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0x68]
call dword [ebp - 0x6c]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx + 0xa8]
call eax
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x70], eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0x38]
call dword [ebp - 0x70]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0050e7c0
add esp, 8
mov dword [ebp + 8], eax
cmp dword [ebp - 0x34], 0
je 0x524e4e
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x64]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x64]
mov eax, dword [edx]
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x74]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x74]
call dword [ebp - 0x78]
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx + 0xa8]
call eax
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x7c], eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0x3c]
call dword [ebp - 0x7c]
jmp 0x524eb9
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x64]
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x64]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
mov dword [ebp - 0x84], edx
push 0
push 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x74]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0x80]
call dword [ebp - 0x84]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx + 0xa8]
call eax
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x88], eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0x40]
call dword [ebp - 0x88]
jmp case.default.0x524ed4
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x68]
mov dword [ebp - 0x44], ecx
cmp dword [ebp - 0x44], 4
ja case.default.0x524ed4
mov edx, dword [ebp - 0x44]
jmp dword [edx*4 + 0x525630]
cmp dword [ebp + 0xc], 0
jbe 0x5251b8
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x64]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x64]
mov edx, dword [eax + 0x28]
call edx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x64]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x64]
mov edx, dword [eax + 0x3c]
call edx
mov byte [ebp - 0x1e], al
movzx eax, byte [ebp - 0x1e]
test eax, eax
je 0x525041
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x68], 1
jne 0x525041
cmp dword [ebp - 0x30], 0
je 0x524f3c
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0x30]
jae 0x525041
mov eax, dword [ebp - 0x10]
add eax, 0x6c
push eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.0050f880
add esp, 8
mov edx, dword [eax]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x10]
add eax, 0x4c
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
push 0x5915bc
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + 0xa8]
call edx
push eax
mov ecx, dword [ebp - 0x8c]
call fcn.00522830
mov dword [ebp - 0x28], eax
cmp dword [ebp + 8], 0
je 0x524fa2
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.00542020
add esp, 0xc
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.0050e7c0
add esp, 8
push eax
call fcn.00541ec0
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x64]
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x64]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
mov dword [ebp - 0x94], edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x90]
call dword [ebp - 0x94]
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx + 0xa8]
call eax
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x9c], eax
push 1
push 0
mov ecx, dword [ebp - 0x98]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov ecx, dword [ebp - 0x48]
call dword [ebp - 0x9c]
jmp 0x5251b8
cmp dword [ebp - 0x30], 0
jne 0x5250ed
movzx eax, byte [ebp - 0x1e]
test eax, eax
je 0x5250a1
push str.StreamTransformationFilter:_plaintext_length_is_not_a_multiple_of_block_size_and_NO_PADDING_is_specified
lea ecx, [ebp - 0xfc]
call fcn.00414fd0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xfc]
push ecx
lea ecx, [ebp - 0x19c]
call fcn.0050ea00
push 0x58a0b0
lea edx, [ebp - 0x19c]
push edx
call fcn.00541c91
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xfc]
call fcn.00417140
jmp 0x5250ed
push str.StreamTransformationFilter:_ciphertext_length_is_not_a_multiple_of_block_size
lea ecx, [ebp - 0x114]
call fcn.00414fd0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x1c4]
call fcn.00512760
push 0x58a10c
lea ecx, [ebp - 0x1c4]
push ecx
call fcn.00541c91
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.00417140
mov edx, dword [ebp - 0x10]
add edx, 0x4c
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x70]
mov dword [ebp - 0xa0], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + 0xa8]
call edx
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa0]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x5915bc
mov edx, dword [ebp - 0xa4]
push edx
mov ecx, dword [ebp - 0xa8]
call fcn.00522860
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x64]
mov dword [ebp - 0xac], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x64]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
mov dword [ebp - 0xb0], edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0xac]
call dword [ebp - 0xb0]
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx + 0xa8]
call eax
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0xb8], eax
push 1
push 0
mov ecx, dword [ebp - 0xb4]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
mov ecx, dword [ebp - 0x50]
call dword [ebp - 0xb8]
jmp case.default.0x524ed4
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x6c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x10]
add edx, 0x4c
mov dword [ebp - 0xc4], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x70]
mov dword [ebp - 0xbc], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + 0xa8]
call edx
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xbc]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 0x5915bc
mov edx, dword [ebp - 0xc0]
push edx
mov ecx, dword [ebp - 0xc4]
call fcn.00522860
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x64]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x64]
mov edx, dword [eax + 0x3c]
call edx
movzx eax, al
test eax, eax
je 0x52536a
cmp dword [ebp + 8], 0
je 0x525251
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00542020
add esp, 0xc
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x68], 2
jne 0x52528a
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp + 0xc]
mov byte [ebp - 0x1f], dl
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp + 0xc]
push eax
movzx ecx, byte [ebp - 0x1f]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0050e7c0
add esp, 8
push eax
call fcn.00541ec0
add esp, 0xc
jmp 0x5252fa
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x68], 4
jne 0x5252c9
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp + 0xc]
sub edx, 1
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0050e7c0
add esp, 8
push eax
call fcn.00541ec0
add esp, 0xc
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x18]
mov byte [eax - 1], dl
jmp 0x5252fa
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp + 0xc]
mov byte [ecx], 0x80
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp + 0xc]
sub edx, 1
push edx
push 0
mov eax, dword [ebp + 0xc]
add eax, 1
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0050e7c0
add esp, 8
push eax
call fcn.00541ec0
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x64]
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x64]
mov eax, dword [edx]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0xcc], ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0xc8]
call dword [ebp - 0xcc]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + 0xa8]
call edx
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0xd0], edx
push 1
push 0
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x54]
call dword [ebp - 0xd0]
jmp case.default.0x524ed4
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0x18]
je 0x5253be
push str.StreamTransformationFilter:_ciphertext_length_is_not_a_multiple_of_block_size
lea ecx, [ebp - 0x12c]
call fcn.00414fd0
mov dword [ebp - 4], 2
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x1ec]
call fcn.00512760
push 0x58a10c
lea ecx, [ebp - 0x1ec]
push ecx
call fcn.00541c91
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.00417140
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x64]
mov dword [ebp - 0xd4], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x64]
mov eax, dword [edx]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0xd8], ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0xd4]
call dword [ebp - 0xd8]
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x68], 2
jne 0x5254dd
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x18]
mov cl, byte [eax - 1]
mov byte [ebp - 0x11], cl
movzx edx, byte [ebp - 0x11]
cmp edx, 1
jl 0x525480
movzx eax, byte [ebp - 0x11]
cmp eax, dword [ebp - 0x18]
ja 0x525480
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0050e7c0
add esp, 8
mov dword [ebp - 0xdc], eax
movzx eax, byte [ebp - 0x11]
mov ecx, dword [ebp - 0x18]
sub ecx, eax
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0050e7c0
add esp, 8
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0050e7c0
add esp, 8
mov esi, eax
lea edx, [ebp - 0x11]
push edx
mov eax, dword [ebp - 0xdc]
push eax
mov ecx, dword [ebp - 0xe0]
push ecx
call fcn.00525df0
add esp, 0xc
cmp eax, esi
je 0x5254cc
push str.StreamTransformationFilter:_invalid_PKCS_7_block_padding_found
lea ecx, [ebp - 0x144]
call fcn.00414fd0
mov dword [ebp - 4], 3
lea edx, [ebp - 0x144]
push edx
lea ecx, [ebp - 0x214]
call fcn.00512760
push 0x58a10c
lea eax, [ebp - 0x214]
push eax
call fcn.00541c91
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x144]
call fcn.00417140
movzx ecx, byte [ebp - 0x11]
mov edx, dword [ebp - 0x18]
sub edx, ecx
mov dword [ebp + 0xc], edx
jmp 0x5255e6
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x68], 4
jne 0x525561
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x18]
mov dl, byte [ecx - 1]
mov byte [ebp - 0x1d], dl
movzx eax, byte [ebp - 0x1d]
cmp eax, 1
jl 0x525504
movzx ecx, byte [ebp - 0x1d]
cmp ecx, dword [ebp - 0x18]
jbe 0x525550
push str.StreamTransformationFilter:_invalid_W3C_block_padding_found
lea ecx, [ebp - 0x15c]
call fcn.00414fd0
mov dword [ebp - 4], 4
lea edx, [ebp - 0x15c]
push edx
lea ecx, [ebp - 0x23c]
call fcn.00512760
push 0x58a10c
lea eax, [ebp - 0x23c]
push eax
call fcn.00541c91
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x15c]
call fcn.00417140
movzx ecx, byte [ebp - 0x1d]
mov edx, dword [ebp - 0x18]
sub edx, ecx
mov dword [ebp + 0xc], edx
jmp 0x5255e6
cmp dword [ebp + 0xc], 1
jbe 0x525580
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp + 0xc]
movzx ecx, byte [eax - 1]
test ecx, ecx
jne 0x525580
mov edx, dword [ebp + 0xc]
sub edx, 1
mov dword [ebp + 0xc], edx
jmp 0x525561
mov eax, dword [ebp + 0xc]
sub eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
cmp edx, 0x80
je 0x5255e6
push str.StreamTransformationFilter:_invalid_ones_and_zeros_padding_found
lea ecx, [ebp - 0x174]
call fcn.00414fd0
mov dword [ebp - 4], 5
lea eax, [ebp - 0x174]
push eax
lea ecx, [ebp - 0x264]
call fcn.00512760
push 0x58a10c
lea ecx, [ebp - 0x264]
push ecx
call fcn.00541c91
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x174]
call fcn.00417140
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + 0xa8]
call edx
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0xe4], edx
push 1
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x58]
call dword [ebp - 0xe4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 8