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

Disassembly:
push ebp
push ebx
sub esp, 0xd4
lea edx, [esp + 0x2c]
mov dword [esp + 0x44], 0x567468
lea eax, [esp + 0xd0]
mov dword [esp], edx
mov dword [esp + 0x48], 0x5c422c
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 0x512e0d
mov dword [esp + 0x54], esp
call fcn.00567748
cmp dword [esp + 0xe8], 0x40
jbe 0x512d2c
mov eax, dword [esp + 0xe0]
mov dword [eax], 0
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [esp], 1
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], 0xb
call fcn.0049b590
mov edx, dword [esp + 0xe0]
mov dword [edx + 0xc], eax
mov ecx, edx
mov dword [esp], 0
call fcn.00576bc0
sub esp, 4
mov eax, dword [esp + 0xe0]
mov dword [eax + 0x10], 1
jmp 0x512a9e
mov ecx, dword [esp + 0xa0]
mov eax, dword [esp + 0x9c]
mov edx, dword [esp + 0x94]
test ecx, ecx
je 0x512a12
test eax, eax
jne 0x512ce0
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x80]
test ecx, ecx
je 0x512a33
test eax, eax
jne 0x512c80
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x6c]
test ecx, ecx
je 0x512a4b
test eax, eax
jne 0x512cb0
mov ecx, dword [esp + 0xb4]
mov eax, dword [esp + 0xb0]
mov edx, dword [esp + 0xa8]
test ecx, ecx
je 0x512a6c
test eax, eax
jne 0x512c50
mov ecx, dword [esp + 0xe4]
mov dword [esp + 8], 1
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x30], 5
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.0050c860
test al, al
jne 0x512d10
mov dword [esp], 1
lea ecx, [esp + 0xa8]
mov dword [esp + 4], 0
mov dword [esp + 0x30], 5
call fcn.004d9f80
sub esp, 8
mov dword [esp], 1
lea ecx, [esp + 0x6c]
mov dword [esp + 4], 0
mov dword [esp + 0x30], 6
call fcn.004d9f80
sub esp, 8
mov eax, dword [esp + 0xe8]
lea ecx, [esp + 0x6c]
mov dword [esp + 0x14], 2
lea edx, [esp + 0x80]
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], ecx
mov dword [esp], edx
sub eax, 1
mov dword [esp + 0x30], 7
mov dword [esp + 8], eax
mov eax, dword [esp + 0xe4]
mov dword [esp + 4], eax
call fcn.0050d4d0
lea ecx, [esp + 0x80]
mov dword [esp + 8], 1
lea eax, [esp + 0x94]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 0x30], 8
call fcn.004d0580
lea edx, [esp + 0xbc]
mov dword [esp + 0x30], 9
lea ecx, [esp + 0xa8]
mov dword [esp], edx
lea eax, [esp + 0x94]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp + 0x20], edx
call fcn.004d0980
mov edx, dword [esp + 0x20]
cmp dword [esp + 0xe0], edx
je 0x512bea
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x30], 0xa
mov ecx, dword [esp + 0xe0]
mov dword [esp], eax
call fcn.00576bc0
sub esp, 4
mov ecx, dword [esp + 0xe0]
mov eax, dword [esp + 0xc0]
mov edx, dword [ecx + 4]
cmp edx, eax
cmovbe eax, edx
shl eax, 2
mov dword [esp + 8], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 4], eax
mov eax, dword [ecx]
mov dword [esp], eax
call fcn.0056d278
mov ecx, dword [esp + 0xc8]
mov eax, dword [esp + 0xcc]
mov edx, dword [esp + 0xe0]
test ecx, ecx
mov dword [edx + 0x10], eax
mov eax, dword [esp + 0xc4]
mov edx, dword [esp + 0xbc]
je 0x5129f1
test eax, eax
je 0x5129f1
test edx, edx
je 0x5129f1
mov ebx, dword [ecx]
shl eax, 2
mov dword [esp], edx
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x30], 9
call eax
sub esp, 8
jmp 0x5129f1
test edx, edx
je 0x512a6c
mov ebx, dword [ecx]
shl eax, 2
mov dword [esp], edx
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x30], 5
call eax
sub esp, 8
jmp 0x512a6c
test edx, edx
je 0x512a33
mov ebx, dword [ecx]
shl eax, 2
mov dword [esp], edx
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x30], 7
call eax
sub esp, 8
jmp 0x512a33
test edx, edx
je 0x512a4b
mov ebx, dword [ecx]
shl eax, 2
mov dword [esp], edx
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x30], 6
call eax
sub esp, 8
jmp 0x512a4b
test edx, edx
je 0x512a12
mov ebx, dword [ecx]
shl eax, 2
mov dword [esp], edx
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x30], 8
call eax
sub esp, 8
jmp 0x512a12
lea eax, [esp + 0x2c]
mov dword [esp], eax
call fcn.00567750
mov eax, dword [esp + 0xe0]
add esp, 0xd4
pop ebx
pop ebp
ret
mov dword [esp], 8
call fcn.00567530
mov ecx, dword [esp + 0xe8]
mov dword [esp + 0xc], 0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x60]
mov dword [esp + 8], 0
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 0x30], 1
call fcn.0046a0e0
lea edx, [esp + 0x60]
mov dword [esp + 4], str.random_safe_prime:_Cant_make_a_prime_of
lea ecx, [esp + 0x64]
mov dword [esp + 8], edx
mov dword [esp], ecx
mov dword [esp + 0x30], 2
call fcn.005bde60
lea eax, [esp + 0x64]
mov dword [esp + 8], str._bits
lea edx, [esp + 0x68]
mov dword [esp + 4], eax
mov dword [esp], edx
mov dword [esp + 0x30], 3
call fcn.005bdf60
lea ecx, [esp + 0x68]
mov dword [esp + 0x30], 4
mov dword [esp], ecx
mov ecx, dword [esp + 0x28]
call fcn.00567538
sub esp, 4
lea ecx, [esp + 0x68]
call fcn.00567508
lea ecx, [esp + 0x64]
call fcn.00567508
lea ecx, [esp + 0x60]
call fcn.00567508
mov eax, dword [esp + 0x28]
mov dword [esp + 8], fcn.00567528
mov dword [esp + 4], 0x62e404
mov dword [esp + 0x30], 0xffffffff
mov dword [esp], eax
call fcn.00567540
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], edx
jmp dword [eax*4 + 0x5d6534]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x30], 0
call fcn.00576cd0
mov edx, dword [esp + 0x20]
mov dword [esp + 0x30], 0xffffffff
mov dword [esp], edx
call fcn.00567758
lea ecx, [esp + 0x68]
call fcn.00567508
lea ecx, [esp + 0x64]
call fcn.00567508
lea ecx, [esp + 0x60]
call fcn.00567508
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.00567548
mov edx, dword [esp + 0x20]
mov dword [esp + 0x30], 0xffffffff
mov dword [esp], edx
call fcn.00567758
lea ecx, [esp + 0xbc]
mov dword [esp + 0x30], 0
call fcn.00578030
lea ecx, [esp + 0x94]
mov dword [esp + 0x30], 0
call fcn.00578030
lea ecx, [esp + 0x80]
mov dword [esp + 0x30], 0
call fcn.00578030
lea ecx, [esp + 0x6c]
mov dword [esp + 0x30], 0
call fcn.00578030
lea ecx, [esp + 0xa8]
mov dword [esp + 0x30], 0
call fcn.00578030
mov ecx, dword [esp + 0xe0]
mov dword [esp + 0x30], 0
call fcn.0058d820
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x30], 0xffffffff
mov dword [esp], ecx
call fcn.00567758
lea esi, [esi]