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

Disassembly:
push 0xffffffffffffffff
push 0x56d440
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x5bf500]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5bf500]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov ebx, dword [esp + 0xb4]
mov ebp, dword [esp + 0xb0]
mov dword [esp + 0x58], ebp
mov dword [esp + 0x18], 0
cmp ebx, 0x10
jae 0x518907
push 0x12
push str.invalid_bit_length
lea ecx, [esp + 0x64]
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], 0
mov byte [esp + 0x64], 0
call fcn.004027f0
lea ecx, [esp + 0x74]
mov dword [esp + 0xa8], 1
call fcn.0051fa9a
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x64]
mov byte [esp + 0xb0], 2
push eax
lea ecx, [esp + 0x90]
mov dword [esp + 0x80], vtable.CryptoPP::Exception.0
mov dword [esp + 0x8c], 1
mov dword [esp + 0xa4], 0xf
mov dword [esp + 0xa0], 0
mov byte [esp + 0x90], 0
call fcn.00402660
push 0x5bc084
lea eax, [esp + 0x78]
mov byte [esp + 0xac], 1
push eax
mov dword [esp + 0x7c], vtable.CryptoPP::InvalidArgument.0
call fcn.00524e20
lea ecx, [esp + 0x30]
call fcn.004fe0b0
lea ecx, [esp + 0x44]
mov dword [esp + 0xa8], 3
call fcn.004fe0b0
mov byte [esp + 0xa8], 4
test bl, 1
jne 0x518ac9
push 0xb6
lea ecx, [esp + 0x78]
call fcn.004fdf50
mov ecx, eax
shr ebx, 1
mov byte [esp + 0xa8], 5
lea eax, [ebx - 8]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004f8ea0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0xac], 6
call fcn.004fe4f0
mov edx, dword [esp + 0x24]
xor eax, eax
mov esi, dword [esp + 0x28]
mov ecx, edx
mov edi, esi
mov byte [esp + 0xa8], 5
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x51899b
call fcn.004edb70
jmp 0x5189a0
call fcn.00443e80
mov edx, dword [esp + 0x80]
xor eax, eax
mov esi, dword [esp + 0x84]
add esp, 4
mov edi, esi
mov byte [esp + 0xa8], 4
mov ecx, edx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x5189d5
call fcn.004edb70
jmp 0x5189da
call fcn.00443e80
add esp, 4
lea ecx, [esp + 0x1c]
push 1
call fcn.004fdf50
lea eax, [esp + 0x5c]
mov byte [esp + 0xa8], 7
push ebx
push eax
call fcn.00504d50
lea ecx, [esp + 0x24]
mov byte [esp + 0xb0], 8
push ecx
push eax
lea eax, [esp + 0x84]
push eax
call fcn.004f4a20
add esp, 0x14
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0xac], 9
call fcn.004fe4f0
mov edx, dword [esp + 0x7c]
xor eax, eax
mov esi, dword [esp + 0x80]
mov ecx, edx
mov edi, esi
mov byte [esp + 0xa8], 8
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x518a5a
call fcn.004edb70
jmp 0x518a5f
call fcn.00443e80
mov edx, dword [esp + 0x68]
xor eax, eax
mov esi, dword [esp + 0x6c]
add esp, 4
mov edi, esi
mov byte [esp + 0xa8], 7
mov ecx, edx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x518a8e
call fcn.004edb70
jmp 0x518a93
call fcn.00443e80
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
xor eax, eax
mov byte [esp + 0xac], 4
add esp, 4
mov edi, esi
mov ecx, edx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x518bb4
call fcn.004edb70
jmp 0x518bb9
lea eax, [ebx - 1]
shr eax, 1
push eax
lea eax, [esp + 0x60]
push eax
call fcn.00504d50
add esp, 8
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0xac], 0xa
call fcn.004fe4f0
mov edx, dword [esp + 0x64]
xor eax, eax
mov esi, dword [esp + 0x68]
mov ecx, edx
mov edi, esi
mov byte [esp + 0xa8], 4
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x518b1a
call fcn.004edb70
jmp 0x518b1f
call fcn.00443e80
add esp, 4
lea ecx, [esp + 0x74]
push 0xb5
call fcn.004fdf50
mov ecx, eax
lea eax, [ebx + 1]
mov byte [esp + 0xa8], 0xb
shr eax, 1
sub eax, 8
push eax
lea eax, [esp + 0x60]
push eax
call fcn.004f8ea0
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0xac], 0xc
call fcn.004fe4f0
mov edx, dword [esp + 0x64]
xor eax, eax
mov esi, dword [esp + 0x68]
mov ecx, edx
mov edi, esi
mov byte [esp + 0xa8], 0xb
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x518b9c
call fcn.004edb70
mov edx, dword [esp + 0x80]
mov esi, dword [esp + 0x84]
jmp 0x518a9b
call fcn.00443e80
mov edx, dword [esp + 0x80]
mov esi, dword [esp + 0x84]
jmp 0x518a9b
call fcn.00443e80
add esp, 4
mov dword [esp + 0x14], 1
lea eax, [esp + 0x14]
push 1
push eax
lea eax, [esp + 0x24]
push str.RandomNumberType
push eax
call fcn.005159d0
add esp, 0x10
mov ecx, eax
movzx eax, byte [ecx + 8]
push eax
lea eax, [esp + 0x34]
mov byte [esp + 0xac], 0xd
push eax
push 0x573154
call fcn.004f3a60
mov ecx, eax
movzx eax, byte [ecx + 8]
push eax
lea eax, [esp + 0x48]
push eax
push 0x573158
call fcn.004f3a60
push eax
mov ecx, ebp
call fcn.004ef680
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], 1
mov byte [esp + 0xa8], 4
test ecx, ecx
je 0x518c37
mov eax, dword [ecx]
push 1
call dword [eax]
mov edx, dword [esp + 0x4c]
xor eax, eax
mov esi, dword [esp + 0x50]
mov ecx, edx
mov edi, esi
mov byte [esp + 0xa8], 3
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x518c63
call fcn.004edb70
jmp 0x518c68
call fcn.00443e80
mov edx, dword [esp + 0x3c]
xor eax, eax
mov esi, dword [esp + 0x40]
add esp, 4
mov edi, esi
mov byte [esp + 0xa8], 0
mov ecx, edx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x518c97
call fcn.004edb70
jmp 0x518c9c
call fcn.00443e80
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0051ece9
add esp, 0x98
ret