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

Disassembly:
push 0xffffffffffffffff
push 0x61a0de
mov eax, dword fs:[0]
push eax
sub esp, 0xac
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6b64f0]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x18], 0
cmp dword [0x70b44c], 0
jne 0x5158c3
call fcn.0050d240
mov dword [0x70b44c], 0x502a00
push 2
mov dword [esp + 0x20], vtable.CryptoPP::Integer.0
mov dword [esp + 0x28], 2
call fcn.004ea650
add esp, 4
push 8
call fcn.004e4160
mov esi, eax
mov dword [esp + 0x30], 0
add esp, 4
mov dword [esp + 0x28], esi
mov dword [esi], 1
mov dword [esi + 4], 0
cmp dword [ebp + 0x10], 1
je 0x515916
lea eax, [esp + 0x1c]
mov ecx, ebp
push eax
call fcn.00511db0
jmp 0x515919
or eax, 0xffffffff
test eax, eax
mov edi, esi
mov ecx, 2
setle bl
xor eax, eax
rep stosd dword es:[edi], eax
push esi
call fcn.005d9065
add esp, 4
test bl, bl
je 0x51593d
xor al, al
jmp 0x5160e4
cmp dword [ebp + 8], 0
jbe 0x51606a
mov eax, dword [ebp + 0xc]
mov al, byte [eax]
and al, 1
je 0x51606a
cmp dword [0x70b44c], 0
jne 0x51596c
call fcn.0050d240
mov dword [0x70b44c], 0x502a00
push 2
mov dword [esp + 0x60], vtable.CryptoPP::Integer.0
mov dword [esp + 0x68], 2
call fcn.004ea650
add esp, 4
push 8
call fcn.004e4160
add esp, 4
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], 0
mov dword [eax], 3
mov dword [eax + 4], 0
mov dword [esp + 0xc8], 0
xor ebx, ebx
cmp dword [0x70b44c], 0
jne 0x5159ce
call fcn.0050d240
mov dword [0x70b44c], 0x502a00
push 2
mov dword [esp + 0x4c], vtable.CryptoPP::Integer.0
mov dword [esp + 0x54], 2
call fcn.004ea650
add esp, 4
push 8
call fcn.004e4160
add esp, 4
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0
mov dword [eax], 4
mov dword [eax + 4], 0
lea eax, [esp + 0x30]
mov byte [esp + 0xc8], 1
push eax
lea ecx, [esp + 0x60]
call fcn.004e6e30
lea ecx, [esp + 0x48]
mov byte [esp + 0xc8], 2
push ecx
push eax
lea eax, [esp + 0x78]
push eax
call fcn.004e7070
add esp, 0xc
mov edx, ebp
mov byte [esp + 0xc8], 3
mov ecx, eax
call fcn.00517a30
mov edx, dword [esp + 0x78]
cmp eax, 1
mov esi, dword [esp + 0x7c]
mov ecx, edx
mov dword [esp + 0x18], eax
sete byte [esp + 0x17]
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x515a7d
call fcn.00610971
jmp 0x515a82
call fcn.005d9065
mov edx, dword [esp + 0x3c]
xor eax, eax
mov esi, dword [esp + 0x40]
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 0x515aa9
call fcn.00610971
jmp 0x515aae
call fcn.005d9065
mov byte [esp + 0xcc], 0
add esp, 4
mov edx, dword [esp + 0x54]
xor eax, eax
mov edi, edx
mov ecx, 2
rep stosd dword es:[edi], eax
push edx
call fcn.005d9065
add esp, 4
cmp byte [esp + 0x17], 0
je 0x515b00
inc ebx
cmp ebx, 0x40
jne 0x515ae9
mov ecx, ebp
call fcn.00512290
test al, al
jne 0x515b07
lea ecx, [esp + 0x5c]
call fcn.00510570
lea ecx, [esp + 0x5c]
call fcn.00510570
jmp 0x5159b6
cmp dword [esp + 0x18], 0
jne 0x515b0e
xor bl, bl
jmp 0x516033
push 1
lea ecx, [esp + 0x74]
call fcn.0050ea00
lea eax, [esp + 0x70]
mov byte [esp + 0xc8], 4
push eax
lea eax, [esp + 0x88]
push ebp
push eax
call fcn.004e7040
add esp, 0xc
lea ecx, [esp + 0x70]
mov byte [esp + 0xc8], 6
call fcn.004e6e50
mov edi, dword [esp + 0x90]
xor esi, esi
mov edx, dword [esp + 0x8c]
mov eax, esi
shr eax, 5
cmp eax, edx
jae 0x515b6f
mov eax, dword [edi + eax*4]
mov ecx, esi
and ecx, 0x1f
shr eax, cl
and al, 1
jne 0x515b72
inc esi
jmp 0x515b58
push esi
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x8c]
call fcn.005028b0
lea eax, [esp + 0x5c]
mov byte [esp + 0xc8], 7
push ebp
push eax
lea edx, [esp + 0x78]
lea ecx, [esp + 0x50]
call fcn.00517d80
add esp, 8
mov byte [esp + 0xc8], 8
cmp dword [0x70b44c], 0
jne 0x515bc2
call fcn.0050d240
mov dword [0x70b44c], 0x502a00
push 2
mov dword [esp + 0x20], vtable.CryptoPP::Integer.0
mov dword [esp + 0x28], 2
call fcn.004ea650
add esp, 4
push 8
call fcn.004e4160
add esp, 4
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0
mov dword [eax], 2
mov dword [eax + 4], 0
lea eax, [esp + 0x1c]
mov byte [esp + 0xc8], 9
push eax
lea eax, [esp + 0x4c]
mov ebx, 1
push eax
mov dword [esp + 0x20], ebx
call fcn.004e6e90
add esp, 8
test al, al
jne 0x515c76
push 2
lea ecx, [esp + 0x34]
call fcn.0050ea00
lea eax, [esp + 0x30]
mov dword [esp + 0xc8], 0xa
push eax
lea eax, [esp + 0x9c]
mov dword [esp + 0x1c], 3
push ebp
push eax
call fcn.004e7070
add esp, 0xc
mov ebx, 7
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.004e6e90
add esp, 8
mov byte [esp + 0x17], 0
test al, al
je 0x515c7b
mov byte [esp + 0x17], 1
test bl, 4
je 0x515cb5
mov edx, dword [esp + 0xa0]
xor eax, eax
mov ebp, dword [esp + 0xa4]
mov ecx, edx
mov edi, ebp
and ebx, 0xfffffffb
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push ebp
cmp eax, 0x10
jb 0x515cad
call fcn.00610971
jmp 0x515cb2
call fcn.005d9065
add esp, 4
test bl, 2
je 0x515ce9
mov edx, dword [esp + 0x38]
xor eax, eax
mov ebp, dword [esp + 0x3c]
mov ecx, edx
mov edi, ebp
and ebx, 0xfffffffd
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push ebp
cmp eax, 0x10
jb 0x515ce1
call fcn.00610971
jmp 0x515ce6
call fcn.005d9065
add esp, 4
mov dword [esp + 0xc8], 8
test bl, 1
je 0x515d11
mov edx, dword [esp + 0x28]
xor eax, eax
mov edi, edx
mov ecx, 2
rep stosd dword es:[edi], eax
push edx
call fcn.005d9065
add esp, 4
cmp byte [esp + 0x17], 0
jne 0x515fa4
mov ebp, 1
cmp esi, ebp
jbe 0x515fa0
lea esp, [esp]
cmp dword [0x70b44c], 0
jne 0x515d48
call fcn.0050d240
mov dword [0x70b44c], 0x502a00
push 2
mov dword [esp + 0x20], vtable.CryptoPP::Integer.0
mov dword [esp + 0x28], 2
call fcn.004ea650
add esp, 4
push 8
call fcn.004e4160
add esp, 4
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0
mov dword [eax], 2
mov dword [eax + 4], 0
lea eax, [esp + 0xac]
mov byte [esp + 0xc8], 0xb
push eax
lea ecx, [esp + 0x4c]
call fcn.004e6e30
lea ecx, [esp + 0x1c]
mov byte [esp + 0xc8], 0xc
push ecx
push eax
lea eax, [esp + 0x38]
push eax
call fcn.004e7070
add esp, 0xc
push dword [esp + 0x44]
mov byte [esp + 0xcc], 0xd
push eax
lea eax, [esp + 0xa0]
push eax
call fcn.004e7100
add esp, 0xc
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0xcc], 0xe
call fcn.0050eca0
mov edx, dword [esp + 0xa0]
xor eax, eax
mov ebx, dword [esp + 0xa4]
mov ecx, edx
mov edi, ebx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push ebx
cmp eax, 0x10
jb 0x515e12
call fcn.00610971
jmp 0x515e17
call fcn.005d9065
mov edx, dword [esp + 0x3c]
xor eax, eax
mov ebx, dword [esp + 0x40]
add esp, 4
mov edi, ebx
mov ecx, edx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push ebx
cmp eax, 0x10
jb 0x515e3e
call fcn.00610971
jmp 0x515e43
call fcn.005d9065
mov edx, dword [esp + 0xb8]
xor eax, eax
mov ebx, dword [esp + 0xbc]
add esp, 4
mov edi, ebx
mov ecx, edx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push ebx
cmp eax, 0x10
jb 0x515e70
call fcn.00610971
jmp 0x515e75
call fcn.005d9065
mov byte [esp + 0xcc], 8
add esp, 4
mov edx, dword [esp + 0x28]
xor eax, eax
mov edi, edx
mov ecx, 2
rep stosd dword es:[edi], eax
push edx
call fcn.005d9065
add esp, 4
lea ecx, [esp + 0x30]
push 2
call fcn.0050ea00
lea eax, [esp + 0x30]
mov byte [esp + 0xc8], 0xf
push eax
push dword [esp + 0x48]
lea eax, [esp + 0xb4]
push eax
call fcn.004e7070
add esp, 0xc
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.004e6e90
mov edx, dword [esp + 0xbc]
add esp, 8
mov ebx, dword [esp + 0xb8]
mov ecx, edx
mov byte [esp + 0x17], al
mov edi, ebx
xor eax, eax
rep stosd dword es:[edi], eax
lea ecx, [edx*4]
push ebx
cmp ecx, 0x10
jb 0x515f00
call fcn.00610971
jmp 0x515f05
call fcn.005d9065
mov byte [esp + 0xcc], 8
xor eax, eax
mov edx, dword [esp + 0x3c]
add esp, 4
mov ebx, dword [esp + 0x3c]
mov ecx, edx
mov edi, ebx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push ebx
cmp eax, 0x10
jb 0x515f34
call fcn.00610971
jmp 0x515f39
call fcn.005d9065
add esp, 4
cmp byte [esp + 0x17], 0
jne 0x515fa4
push 2
lea ecx, [esp + 0x34]
call fcn.0050ea00
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.004e6e90
mov ebx, dword [esp + 0x44]
add esp, 8
mov edx, dword [esp + 0x38]
mov edi, ebx
mov byte [esp + 0x17], al
mov ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
lea ecx, [edx*4]
push ebx
cmp ecx, 0x10
jb 0x515f88
call fcn.00610971
jmp 0x515f8d
call fcn.005d9065
add esp, 4
cmp byte [esp + 0x17], 0
jne 0x515fa0
inc ebp
cmp ebp, esi
jb 0x515d30
xor bl, bl
jmp 0x515fa6
mov bl, 1
mov edx, dword [esp + 0x50]
xor eax, eax
mov esi, dword [esp + 0x54]
mov ecx, edx
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x515fca
call fcn.00610971
jmp 0x515fcf
call fcn.005d9065
mov edx, dword [esp + 0x7c]
xor eax, eax
mov esi, dword [esp + 0x80]
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 0x515ff9
call fcn.00610971
jmp 0x515ffe
call fcn.005d9065
mov edx, dword [esp + 0x90]
xor eax, eax
mov esi, dword [esp + 0x94]
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 0x51602b
call fcn.00610971
jmp 0x516030
call fcn.005d9065
add esp, 4
mov edx, dword [esp + 0x64]
xor eax, eax
mov esi, dword [esp + 0x68]
mov ecx, edx
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x51605d
call fcn.00610971
add esp, 4
jmp 0x5160e2
call fcn.005d9065
add esp, 4
jmp 0x5160e2
cmp dword [0x70b44c], 0
jne 0x516082
call fcn.0050d240
mov dword [0x70b44c], 0x502a00
push 2
mov dword [esp + 0x20], vtable.CryptoPP::Integer.0
mov dword [esp + 0x28], 2
call fcn.004ea650
add esp, 4
push 8
call fcn.004e4160
mov esi, eax
mov dword [esp + 0x30], 0
add esp, 4
mov dword [esp + 0x28], esi
lea eax, [esp + 0x1c]
mov dword [esi], 2
push eax
push ebp
mov dword [esi + 4], 0
call fcn.004e6e90
mov bl, al
mov edi, esi
xor eax, eax
mov ecx, 2
rep stosd dword es:[edi], eax
push esi
call fcn.005d9065
add esp, 0xc
mov al, bl
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb8
ret