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

Disassembly:
mov eax, 0x4c
call fcn.1005b330
mov eax, dword [0x102db074]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x60]
push ebx
push ebp
mov ebp, dword [esp + 0x5c]
xor ebx, ebx
push esi
xor esi, esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ebx
push edi
mov edi, dword [esp + 0x60]
cmp ebp, 0x200
jge 0x1015a287
call fcn.100c3120
push 0x10284880
push 0x5a
push str.crypto_rsa_rsa_gen.c
call fcn.100c3220
push ebx
push 0x78
jmp 0x1015ab19
test eax, eax
je 0x1015a2d4
push eax
call fcn.10173b70
add esp, 4
test eax, eax
jne 0x1015a2d4
call fcn.100c3120
push 0x10284880
push 0x60
push str.crypto_rsa_rsa_gen.c
call fcn.100c3220
push 0
push 0xb2
push 4
call fcn.100c32d0
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.1005a1f2
add esp, 0x4c
ret
cmp dword [esp + 0x10], 2
jl 0x1015aafb
push ebp
call fcn.100ebb20
add esp, 4
cmp dword [esp + 0x10], eax
jg 0x1015aafb
push dword [edi + 4]
call fcn.100ebef0
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x1015aacd
push eax
call fcn.100ebfc0
push dword [esp + 0x18]
call fcn.100ebd70
push dword [esp + 0x1c]
mov dword [esp + 0x44], eax
call fcn.100ebd70
push dword [esp + 0x20]
mov dword [esp + 0x30], eax
call fcn.100ebd70
add esp, 0x10
mov dword [esp + 0x30], eax
test eax, eax
je 0x1015aacd
xor edx, edx
mov eax, ebp
div dword [esp + 0x10]
xor edx, edx
xor ecx, ecx
mov ebp, eax
mov eax, dword [esp + 0x64]
div dword [esp + 0x10]
movd xmm0, ebp
mov eax, edx
pshufd xmm3, xmm0, 0
mov dword [esp + 0x2c], eax
movd xmm0, eax
mov eax, dword [esp + 0x10]
pshufd xmm5, xmm0, 0
cmp eax, 0x10
jb 0x1015a44d
movaps xmm2, xmmword [0x102780c0]
mov edx, eax
movaps xmm4, xmmword [0x10252730]
and edx, 0xfffffff0
paddd xmm2, xmm3
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm0, xmm0, 0
movaps xmm1, xmm5
paddd xmm0, xmm4
pcmpgtd xmm1, xmm0
movaps xmm0, xmm2
pand xmm0, xmm1
pandn xmm1, xmm3
por xmm0, xmm1
movaps xmm1, xmm5
movups xmmword [esp + ecx*4 + 0x44], xmm0
movd xmm0, eax
lea eax, [ecx + 8]
pshufd xmm0, xmm0, 0
paddd xmm0, xmm4
pcmpgtd xmm1, xmm0
movaps xmm0, xmm1
pandn xmm1, xmm3
pand xmm0, xmm2
por xmm0, xmm1
movaps xmm1, xmm5
movups xmmword [esp + ecx*4 + 0x54], xmm0
movd xmm0, eax
lea eax, [ecx + 0xc]
pshufd xmm0, xmm0, 0
paddd xmm0, xmm4
pcmpgtd xmm1, xmm0
movaps xmm0, xmm1
pandn xmm1, xmm3
pand xmm0, xmm2
por xmm0, xmm1
movaps xmm1, xmm5
movups xmmword [esp + ecx*4 + 0x64], xmm0
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmm4
pcmpgtd xmm1, xmm0
movaps xmm0, xmm1
pandn xmm1, xmm3
pand xmm0, xmm2
por xmm0, xmm1
movups xmmword [esp + ecx*4 + 0x74], xmm0
add ecx, 0x10
cmp ecx, edx
jl 0x1015a393
cmp ecx, dword [esp + 0x10]
jge 0x1015a466
mov ebx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x2c]
lea eax, [ebp + 1]
cmovge eax, ebp
mov dword [esp + ecx*4 + 0x44], eax
inc ecx
cmp ecx, ebx
jl 0x1015a451
xor ebx, ebx
inc dword [edi + 0x78]
cmp dword [edi + 0x14], esi
jne 0x1015a47e
call fcn.100aa130
mov dword [edi + 0x14], eax
test eax, eax
je 0x1015aacd
mov eax, dword [edi + 0x1c]
test eax, eax
jne 0x1015a495
call fcn.100aa2e0
mov dword [edi + 0x1c], eax
test eax, eax
je 0x1015aacd
push 4
push eax
call fcn.100aa410
add esp, 8
cmp dword [edi + 0x18], esi
jne 0x1015a4b5
call fcn.100aa130
mov dword [edi + 0x18], eax
test eax, eax
je 0x1015aacd
mov eax, dword [edi + 0x20]
test eax, eax
jne 0x1015a4cc
call fcn.100aa2e0
mov dword [edi + 0x20], eax
test eax, eax
je 0x1015aacd
push 4
push eax
call fcn.100aa410
mov eax, dword [edi + 0x24]
add esp, 8
test eax, eax
jne 0x1015a4ee
call fcn.100aa2e0
mov dword [edi + 0x24], eax
test eax, eax
je 0x1015aacd
push 4
push eax
call fcn.100aa410
mov eax, dword [edi + 0x28]
add esp, 8
test eax, eax
jne 0x1015a510
call fcn.100aa2e0
mov dword [edi + 0x28], eax
test eax, eax
je 0x1015aacd
push 4
push eax
call fcn.100aa410
mov eax, dword [edi + 0x2c]
add esp, 8
test eax, eax
jne 0x1015a532
call fcn.100aa2e0
mov dword [edi + 0x2c], eax
test eax, eax
je 0x1015aacd
push 4
push eax
call fcn.100aa410
mov eax, dword [edi + 0x30]
add esp, 8
test eax, eax
jne 0x1015a554
call fcn.100aa2e0
mov dword [edi + 0x30], eax
test eax, eax
je 0x1015aacd
push 4
push eax
call fcn.100aa410
mov eax, dword [esp + 0x18]
add esp, 8
cmp eax, 2
jle 0x1015a5d6
add eax, 0xfffffffe
mov dword [edi + 8], 1
push eax
push 0
call fcn.100a4c50
mov ebp, eax
add esp, 8
mov dword [esp + 0x1c], ebp
test ebp, ebp
je 0x1015aacd
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x1015a5a0
push 0x100ebb60
push eax
call fcn.100a4cf0
add esp, 8
mov eax, ebp
mov ebx, 2
mov dword [edi + 0x4c], eax
nop word [eax + eax]
call fcn.100ebbc0
mov dword [esp + 0x34], eax
test eax, eax
je 0x1015aacd
push eax
push ebp
call fcn.100a4d50
inc ebx
add esp, 8
cmp ebx, dword [esp + 0x10]
jl 0x1015a5b0
mov ebx, dword [esp + 0x1c]
push dword [esp + 0x18]
push dword [edi + 0x18]
call fcn.100a9ca0
add esp, 8
test eax, eax
je 0x1015aacd
xor ebp, ebp
nop
mov dword [esp + 0x3c], esi
mov dword [esp + 0x2c], 0
test ebp, ebp
jne 0x1015a605
mov ebx, dword [edi + 0x20]
jmp 0x1015a622
cmp ebp, 1
jne 0x1015a60f
mov ebx, dword [edi + 0x24]
jmp 0x1015a622
lea eax, [ebp - 2]
push eax
push ebx
call fcn.100a4ef0
add esp, 8
mov dword [esp + 0x34], eax
mov ebx, dword [eax]
push 4
push ebx
call fcn.100aa410
mov eax, dword [esp + ebp*4 + 0x4c]
add esp, 8
mov dword [esp + 0x18], eax
push dword [esp + 0x14]
push dword [esp + 0x2c]
push 0
push 0
push 0
push eax
push ebx
call fcn.10162dd0
add esp, 0x1c
test eax, eax
je 0x1015aacd
xor esi, esi
cmp esi, ebp
jge 0x1015a695
test esi, esi
jne 0x1015a664
mov eax, dword [edi + 0x20]
jmp 0x1015a680
cmp esi, 1
jne 0x1015a66e
mov eax, dword [edi + 0x24]
jmp 0x1015a680
lea eax, [esi - 2]
push eax
push dword [esp + 0x20]
call fcn.100a4ef0
add esp, 8
mov eax, dword [eax]
push eax
push ebx
call fcn.100a9ad0
add esp, 8
test eax, eax
je 0x1015a807
inc esi
jmp 0x1015a657
call fcn.100aa500
mov esi, dword [esp + 0x30]
push eax
push ebx
push esi
call fcn.100ec160
add esp, 0xc
test eax, eax
je 0x1015aacd
call fcn.100be0c0
push 4
push esi
call fcn.100aa410
push dword [esp + 0x1c]
push dword [edi + 0x18]
push esi
push dword [esp + 0x34]
call fcn.100ed210
add esp, 0x18
test eax, eax
je 0x1015a7b3
mov esi, dword [esp + 0x3c]
add esi, dword [esp + ebp*4 + 0x44]
mov dword [esp + 0x40], esi
cmp ebp, 1
jne 0x1015a6f7
push dword [esp + 0x14]
push dword [edi + 0x24]
push dword [edi + 0x20]
jmp 0x1015a707
test ebp, ebp
je 0x1015a86e
push dword [esp + 0x14]
push ebx
push dword [edi + 0x14]
push dword [esp + 0x2c]
call fcn.100ec380
add esp, 0x10
test eax, eax
je 0x1015aacd
lea eax, [esi - 4]
mov esi, dword [esp + 0x30]
push eax
push dword [esp + 0x24]
push esi
call fcn.10114c70
add esp, 0xc
test eax, eax
je 0x1015aacd
push esi
call fcn.100a9e60
mov esi, eax
add esp, 4
cmp esi, 9
jb 0x1015a751
cmp esi, 0xf
jbe 0x1015a810
push dword [esp + 0x24]
push 2
push dword [esp + 0x30]
call fcn.10162d00
inc dword [esp + 0x30]
add esp, 0xc
test eax, eax
je 0x1015aacd
cmp dword [esp + 0x10], 4
jle 0x1015a79b
mov eax, dword [esp + 0x18]
cmp esi, 9
jae 0x1015a78d
inc eax
inc dword [esp + 0x2c]
mov dword [esp + 0x18], eax
jmp 0x1015a635
dec eax
inc dword [esp + 0x2c]
mov dword [esp + 0x18], eax
jmp 0x1015a635
cmp dword [esp + 0x2c], 4
je 0x1015a863
mov eax, dword [esp + 0x18]
inc dword [esp + 0x2c]
jmp 0x1015a635
call fcn.100bde40
test eax, eax
js 0x1015aacd
mov ecx, eax
and ecx, 0x7f800000
cmp ecx, 0x1800000
jne 0x1015aacd
and eax, 0x7fffff
cmp eax, 0x6c
jne 0x1015aacd
call fcn.100bdee0
mov esi, dword [esp + 0x24]
push esi
push 2
push dword [esp + 0x30]
call fcn.10162d00
inc esi
add esp, 0xc
mov dword [esp + 0x24], esi
test eax, eax
je 0x1015aacd
mov eax, dword [esp + 0x18]
jmp 0x1015a635
cmp ebp, 1
jle 0x1015a82f
mov eax, dword [esp + 0x34]
push dword [edi + 0x14]
push dword [eax + 0xc]
call fcn.100a9ca0
add esp, 8
test eax, eax
je 0x1015aacd
push dword [esp + 0x20]
push dword [edi + 0x14]
call fcn.100a9ca0
add esp, 8
test eax, eax
je 0x1015aacd
push ebp
push 3
push dword [esp + 0x30]
call fcn.10162d00
add esp, 0xc
test eax, eax
je 0x1015aacd
mov esi, dword [esp + 0x40]
jmp 0x1015a886
mov ebx, dword [esp + 0x1c]
xor esi, esi
jmp 0x1015a5ed
push 0
push 3
push dword [esp + 0x30]
call fcn.10162d00
add esp, 0xc
test eax, eax
je 0x1015aacd
mov ebx, dword [esp + 0x1c]
inc ebp
cmp ebp, dword [esp + 0x10]
jl 0x1015a5f0
push dword [edi + 0x24]
push dword [edi + 0x20]
call fcn.100a9ad0
add esp, 8
test eax, eax
jns 0x1015a8b3
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], ecx
call fcn.100aa500
mov esi, dword [esp + 0x20]
push eax
push dword [edi + 0x20]
push esi
call fcn.100ec160
add esp, 0xc
test eax, eax
je 0x1015aacd
call fcn.100aa500
mov ebp, dword [esp + 0x30]
push eax
push dword [edi + 0x24]
push ebp
call fcn.100ec160
add esp, 0xc
test eax, eax
je 0x1015aacd
mov ebx, dword [esp + 0x14]
push ebx
push ebp
push esi
push dword [esp + 0x44]
call fcn.100ec380
add esp, 0x10
test eax, eax
je 0x1015aacd
mov ebp, dword [esp + 0x1c]
mov esi, 2
cmp dword [esp + 0x10], esi
jle 0x1015a96f
nop dword [eax]
lea eax, [esi - 2]
push eax
push ebp
call fcn.100a4ef0
mov ebx, eax
call fcn.100aa500
push eax
push dword [ebx]
push dword [ebx + 4]
call fcn.100ec160
add esp, 0x14
test eax, eax
je 0x1015aacd
push dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
push dword [ebx + 4]
push eax
push eax
call fcn.100ec380
add esp, 0x10
test eax, eax
je 0x1015aacd
inc esi
cmp esi, dword [esp + 0x10]
jl 0x1015a920
mov ebx, dword [esp + 0x14]
call fcn.100aa130
mov esi, eax
test esi, esi
je 0x1015aacd
push 4
push dword [esp + 0x3c]
push esi
call fcn.100aa510
push ebx
push esi
push dword [edi + 0x18]
push dword [edi + 0x1c]
call fcn.100ed210
add esp, 0x1c
push esi
test eax, eax
je 0x1015aac5
call fcn.100a9df0
add esp, 4
call fcn.100aa130
mov ebx, eax
test ebx, ebx
je 0x1015aacd
push 4
push dword [edi + 0x1c]
push ebx
call fcn.100aa510
mov esi, dword [esp + 0x20]
push esi
push dword [esp + 0x30]
push ebx
push dword [edi + 0x28]
push 0
call fcn.10114570
add esp, 0x20
test eax, eax
je 0x1015aac4
push esi
push dword [esp + 0x34]
push ebx
push dword [edi + 0x2c]
push 0
call fcn.10114570
add esp, 0x14
test eax, eax
je 0x1015aac4
mov esi, 2
cmp dword [esp + 0x10], esi
jle 0x1015aa3d
nop word [eax + eax]
lea eax, [esi - 2]
push eax
push ebp
call fcn.100a4ef0
push dword [esp + 0x1c]
mov eax, dword [eax + 4]
push eax
push ebx
push eax
push 0
call fcn.10114570
add esp, 0x1c
test eax, eax
je 0x1015aac4
inc esi
cmp esi, dword [esp + 0x10]
jl 0x1015aa10
push ebx
call fcn.100a9df0
add esp, 4
call fcn.100aa130
mov ebx, eax
test ebx, ebx
je 0x1015aacd
push 4
push dword [edi + 0x20]
push ebx
call fcn.100aa510
push dword [esp + 0x20]
push ebx
push dword [edi + 0x24]
push dword [edi + 0x30]
call fcn.100ed210
add esp, 0x1c
test eax, eax
je 0x1015aac4
mov edi, 2
cmp dword [esp + 0x10], edi
jle 0x1015aab4
nop
lea eax, [edi - 2]
push eax
push ebp
call fcn.100a4ef0
mov esi, eax
push 4
push dword [esi]
push ebx
call fcn.100aa510
push dword [esp + 0x28]
push ebx
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.100ed210
add esp, 0x24
test eax, eax
je 0x1015aac4
inc edi
cmp edi, dword [esp + 0x10]
jl 0x1015aa80
push ebx
call fcn.100a9df0
add esp, 4
mov esi, 1
jmp 0x1015ab23
push ebx
call fcn.100a9df0
add esp, 4
call fcn.100c3120
push 0x10284880
push 0x19f
push str.crypto_rsa_rsa_gen.c
call fcn.100c3220
push 0
push 0x80003
push 4
call fcn.100c32d0
add esp, 0x18
xor esi, esi
jmp 0x1015ab23
xor esi, esi
call fcn.100c3120
push 0x10284880
push 0x66
push str.crypto_rsa_rsa_gen.c
call fcn.100c3220
push esi
push 0xa5
push 4
call fcn.100c32d0
add esp, 0x18
mov ebx, dword [esp + 0x14]
push ebx
call fcn.100ebc70
push ebx
call fcn.100ebce0
mov ecx, dword [esp + 0x60]
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005a1f2
add esp, 0x4c
ret