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

Disassembly:
push 0xffffffffffffffff
push 0x1007486b
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x1008d200]
xor eax, esp
mov dword [esp + 0xb4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1008d200]
xor eax, esp
push eax
lea eax, [esp + 0xcc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xdc]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebp
cmp dword [0x1009879c], ebx
jne 0x10058233
call fcn.100432d0
mov dword [0x1009879c], 0x10038350
mov edi, 8
mov dword [esp + 0x24], vtable.CryptoPP::Integer.0
mov dword [esp + 0x2c], 2
call fcn.1002e1d0
mov esi, eax
mov dword [esi], 1
mov dword [esi + 4], ebx
cmp dword [ebp + 0x10], 1
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ebx
je 0x10058273
lea edx, [esp + 0x24]
mov eax, ebp
call fcn.10047690
jmp 0x10058276
or eax, 0xffffffff
cmp eax, ebx
setle byte [esp + 0x1b]
xor eax, eax
mov edi, esi
mov ecx, 2
push esi
rep stosd dword es:[edi], eax
call fcn.1005cffc
add esp, 4
cmp byte [esp + 0x1b], bl
jne 0x10058a3a
cmp dword [ebp + 8], ebx
jbe 0x100582a9
mov eax, dword [ebp + 0xc]
mov al, byte [eax]
and al, 1
jne 0x10058315
cmp dword [0x1009879c], ebx
jne 0x100582c0
call fcn.100432d0
mov dword [0x1009879c], 0x10038350
mov edi, 8
mov dword [esp + 0x24], vtable.CryptoPP::Integer.0
mov dword [esp + 0x2c], 2
call fcn.1002e1d0
mov esi, eax
mov dword [esi], 2
lea edx, [esp + 0x24]
mov eax, ebp
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ebx
mov dword [esi + 4], ebx
call fcn.1002e5c0
mov bl, al
xor eax, eax
mov edi, esi
mov ecx, 2
push esi
rep stosd dword es:[edi], eax
call fcn.1005cffc
add esp, 4
mov al, bl
jmp 0x10058a3c
cmp dword [0x1009879c], ebx
jne 0x1005832c
call fcn.100432d0
mov dword [0x1009879c], 0x10038350
mov edi, 8
mov dword [esp + 0x38], vtable.CryptoPP::Integer.0
mov dword [esp + 0x40], 2
call fcn.1002e1d0
mov dword [eax], 3
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ebx
mov dword [eax + 4], ebx
mov dword [esp + 0xd4], 6
mov dword [esp + 0x1c], ebx
cmp dword [0x1009879c], ebx
jne 0x1005837d
call fcn.100432d0
mov dword [0x1009879c], 0x10038350
push 8
mov dword [esp + 0x28], vtable.CryptoPP::Integer.0
mov dword [esp + 0x30], 2
call fcn.1005d036
mov ebp, eax
add esp, 4
cmp ebp, ebx
jne 0x100583ce
lea ecx, [ecx]
push ebx
call fcn.1005c4c4
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x100584e6
push esi
call fcn.1005c4c4
add esp, 4
call esi
push 8
call fcn.1005d036
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x100583a0
xor eax, eax
mov dword [ebp], 4
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], eax
mov dword [ebp + 4], eax
lea esi, [esp + 0x8c]
lea eax, [esp + 0x38]
mov byte [esp + 0xd4], 9
call fcn.1002e4d0
mov ecx, eax
lea eax, [esp + 0x24]
lea esi, [esp + 0x60]
mov byte [esp + 0xd4], 0xa
call fcn.1002e720
mov edx, dword [esp + 0x20]
mov ecx, eax
mov byte [esp + 0xd4], 0xb
call fcn.1005ab30
mov ecx, dword [esp + 0x68]
mov edi, dword [esp + 0x6c]
mov esi, eax
cmp esi, 1
sete byte [esp + 0x1b]
xor eax, eax
mov edx, ecx
mov ebx, edi
rep stosd dword es:[edi], eax
lea ecx, [edx*4]
push ebx
cmp ecx, 0x10
jb 0x10058452
call fcn.1005d890
jmp 0x10058457
call fcn.1005cffc
mov ecx, dword [esp + 0x98]
mov edi, dword [esp + 0x9c]
mov edx, ecx
add edx, edx
add esp, 4
mov ebx, edi
xor eax, eax
add edx, edx
rep stosd dword es:[edi], eax
push ebx
cmp edx, 0x10
jb 0x10058481
call fcn.1005d890
jmp 0x10058486
call fcn.1005cffc
add esp, 4
xor eax, eax
mov byte [esp + 0xd4], 6
mov edi, ebp
mov ecx, 2
push ebp
rep stosd dword es:[edi], eax
call fcn.1005cffc
add esp, 4
cmp byte [esp + 0x1b], 0
je 0x10058546
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, 0x40
jne 0x100584cb
mov ecx, dword [esp + 0x20]
call fcn.10047970
test al, al
jne 0x1005851b
lea eax, [esp + 0x38]
push eax
call fcn.10046310
lea ecx, [esp + 0x38]
push ecx
call fcn.10046310
xor ebx, ebx
jmp 0x10058366
push 1
lea edx, [esp + 0x8c]
push edx
lea ecx, [esp + 0x54]
mov dword [esp + 0x90], str.bad_allocation
call fcn.1005c775
push 0x1008692c
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x54], vtable.std::bad_alloc.0
call fcn.1005dc27
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
xor eax, eax
mov edi, esi
mov ecx, edx
rep stosd dword es:[edi], eax
lea ecx, [edx*4]
push esi
cmp ecx, 0x10
jb 0x10058a32
call fcn.1005d890
jmp 0x10058a37
test esi, esi
je 0x10058997
push 1
lea esi, [esp + 0x28]
call fcn.10044940
mov ebp, dword [esp + 0x20]
mov eax, esi
mov ecx, ebp
lea esi, [esp + 0xa0]
mov byte [esp + 0xd4], 0xc
call fcn.1002e700
lea ecx, [esp + 0x24]
mov byte [esp + 0xd4], 0xe
call fcn.10002480
mov edx, dword [esp + 0xac]
mov edi, dword [esp + 0xa8]
xor esi, esi
mov eax, esi
shr eax, 5
cmp eax, edi
jae 0x100585ad
mov eax, dword [edx + eax*4]
mov ecx, esi
and ecx, 0x1f
shr eax, cl
and al, 1
jne 0x100585b0
inc esi
jmp 0x10058596
push esi
lea ecx, [esp + 0xa4]
mov dword [esp + 0x24], esi
push ecx
lea esi, [esp + 0x94]
call fcn.1002e3a0
push ebp
lea edx, [esp + 0x3c]
push edx
mov eax, esi
push eax
lea ecx, [esp + 0x58]
push ecx
mov byte [esp + 0xe4], 0xf
call fcn.1005adf0
add esp, 0x10
mov byte [esp + 0xd4], 0x10
cmp dword [0x1009879c], 0
jne 0x10058607
call fcn.100432d0
mov dword [0x1009879c], 0x10038350
mov esi, vtable.CryptoPP::Integer.0
mov edi, 8
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], 2
call fcn.1002e1d0
xor ecx, ecx
mov dword [eax], 2
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [eax + 4], ecx
mov ebx, 1
mov byte [esp + 0xd4], 0x13
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x5c], ebx
je 0x1005865d
lea edx, [esp + 0x24]
lea eax, [esp + 0x4c]
call fcn.10047690
test eax, eax
je 0x100586d7
cmp dword [0x1009879c], 0
jne 0x10058675
call fcn.100432d0
mov dword [0x1009879c], 0x10038350
mov edi, 8
mov dword [esp + 0x60], esi
mov dword [esp + 0x68], 2
call fcn.1002e1d0
xor ecx, ecx
mov dword [eax], 2
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
mov dword [eax + 4], ecx
mov dword [esp + 0xd4], 0x16
lea eax, [esp + 0x60]
mov ecx, ebp
lea esi, [esp + 0x74]
mov dword [esp + 0x1c], 3
call fcn.1002e720
mov edx, eax
lea eax, [esp + 0x4c]
lea ebx, [edi - 1]
call fcn.1002e5c0
mov byte [esp + 0x1b], 0
test al, al
je 0x100586dc
mov byte [esp + 0x1b], 1
test bl, 4
je 0x100586ed
lea ecx, [esp + 0x74]
and ebx, 0xfffffffb
call fcn.10002480
test bl, 2
je 0x100586fe
lea ecx, [esp + 0x60]
and ebx, 0xfffffffd
call fcn.10002480
mov dword [esp + 0xd4], 0x10
test bl, 1
je 0x10058717
lea ecx, [esp + 0x24]
call fcn.10002480
cmp byte [esp + 0x1b], 0
je 0x1005874f
lea ecx, [esp + 0x4c]
call fcn.10002480
lea ecx, [esp + 0x8c]
call fcn.10002480
lea ecx, [esp + 0xa0]
call fcn.10002480
lea ecx, [esp + 0x38]
call fcn.10002480
mov al, 1
jmp 0x10058a3c
mov eax, 1
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x20], eax
jbe 0x10058955
push 2
lea esi, [esp + 0x28]
call fcn.10044940
lea esi, [esp + 0x74]
lea eax, [esp + 0x4c]
mov byte [esp + 0xd4], 0x17
call fcn.1002e4d0
mov ecx, eax
lea eax, [esp + 0x24]
lea esi, [esp + 0xb4]
mov byte [esp + 0xd4], 0x18
call fcn.1002e720
mov ecx, eax
lea edx, [esp + 0x60]
push edx
mov eax, ebp
mov byte [esp + 0xd8], 0x19
call fcn.1002e760
add esp, 4
lea ecx, [esp + 0x4c]
push ecx
mov edi, eax
mov byte [esp + 0xd8], 0x1a
call fcn.10044aa0
mov ecx, dword [esp + 0x68]
mov edi, dword [esp + 0x6c]
mov edx, ecx
add edx, edx
mov esi, edi
xor eax, eax
add edx, edx
rep stosd dword es:[edi], eax
push esi
cmp edx, 0x10
jb 0x100587ea
call fcn.1005d890
jmp 0x100587ef
call fcn.1005cffc
mov ecx, dword [esp + 0xc0]
mov edi, dword [esp + 0xc4]
xor eax, eax
mov edx, ecx
mov esi, edi
rep stosd dword es:[edi], eax
add esp, 4
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x1005881c
call fcn.1005d890
jmp 0x10058821
call fcn.1005cffc
mov ecx, dword [esp + 0x80]
mov edi, dword [esp + 0x84]
xor eax, eax
mov edx, ecx
mov esi, edi
rep stosd dword es:[edi], eax
add esp, 4
lea ecx, [edx*4]
push esi
cmp ecx, 0x10
jb 0x1005884e
call fcn.1005d890
jmp 0x10058853
call fcn.1005cffc
mov byte [esp + 0xd8], 0x10
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov ecx, edx
add edx, edx
add esp, 4
xor eax, eax
add edx, edx
mov edi, esi
rep stosd dword es:[edi], eax
push esi
cmp edx, 0x10
jb 0x1005887f
call fcn.1005d890
jmp 0x10058884
call fcn.1005cffc
add esp, 4
push 2
lea esi, [esp + 0x28]
call fcn.10044940
mov eax, esi
mov ecx, ebp
lea esi, [esp + 0x74]
mov byte [esp + 0xd4], 0x1b
call fcn.1002e720
mov edx, eax
lea eax, [esp + 0x4c]
call fcn.1002e5c0
mov ecx, dword [esp + 0x7c]
mov edi, dword [esp + 0x80]
mov bl, al
xor eax, eax
mov edx, ecx
mov esi, edi
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x100588db
call fcn.1005d890
jmp 0x100588e0
call fcn.1005cffc
mov byte [esp + 0xd8], 0x10
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
xor eax, eax
mov edi, esi
mov ecx, edx
rep stosd dword es:[edi], eax
add esp, 4
lea ecx, [edx*4]
push esi
cmp ecx, 0x10
jb 0x1005890f
call fcn.1005d890
jmp 0x10058914
call fcn.1005cffc
add esp, 4
test bl, bl
jne 0x1005871e
push 2
lea esi, [esp + 0x78]
call fcn.10044940
mov edx, esi
lea eax, [esp + 0x4c]
call fcn.1002e5c0
mov ecx, esi
mov bl, al
call fcn.10002480
test bl, bl
jne 0x10058976
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x20]
jb 0x10058762
mov edx, dword [esp + 0x54]
mov esi, dword [esp + 0x58]
mov ecx, edx
add edx, edx
xor eax, eax
add edx, edx
mov edi, esi
rep stosd dword es:[edi], eax
push esi
cmp edx, 0x10
jb 0x100589a5
call fcn.1005d890
jmp 0x100589aa
lea ecx, [esp + 0x4c]
call fcn.10002480
lea ecx, [esp + 0x8c]
call fcn.10002480
lea ecx, [esp + 0xa0]
call fcn.10002480
lea ecx, [esp + 0x38]
call fcn.10002480
jmp 0x10058a3a
call fcn.1005cffc
mov esi, dword [esp + 0x9c]
mov edx, dword [esp + 0x98]
xor eax, eax
mov edi, esi
mov ecx, edx
rep stosd dword es:[edi], eax
add esp, 4
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x100589d7
call fcn.1005d890
jmp 0x100589dc
call fcn.1005cffc
mov ecx, dword [esp + 0xac]
mov edi, dword [esp + 0xb0]
xor eax, eax
mov edx, ecx
mov esi, edi
rep stosd dword es:[edi], eax
add esp, 4
lea ecx, [edx*4]
push esi
cmp ecx, 0x10
jb 0x10058a09
call fcn.1005d890
jmp 0x10058a0e
call fcn.1005cffc
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x48]
mov ecx, edx
add edx, edx
add esp, 4
xor eax, eax
add edx, edx
mov edi, esi
rep stosd dword es:[edi], eax
push esi
cmp edx, 0x10
jb 0x10058a32
call fcn.1005d890
jmp 0x10058a37
call fcn.1005cffc
add esp, 4
xor al, al
mov ecx, dword [esp + 0xcc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.1005c755
add esp, 0xc4
ret