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

Disassembly:
mov eax, 0x14
call fcn.0053e710
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0x24]
push edi
test ebp, ebp
je 0x5a9cf0
cmp dword [esp + 0x30], 0
je 0x5a9cf0
cmp dword [esp + 0x34], 0
je 0x5a9cf0
push ebp
call fcn.0054f320
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, 2
jl 0x5a9cf0
push 1
push ebp
call fcn.0054f330
push 0
push ebp
mov edi, eax
call fcn.0054f330
mov ebx, eax
add esp, 0x10
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x5a9a90
test ebx, ebx
je 0x5a9cf0
cmp dword [esi + 0x24], 0
jne 0x5a9a9e
test edi, edi
je 0x5a9cf0
test ebx, ebx
je 0x5a9ab6
push eax
call fcn.005a2a60
push 4
push ebx
mov dword [esi + 0x20], ebx
call fcn.005a2690
add esp, 0xc
test edi, edi
je 0x5a9ad0
push dword [esi + 0x24]
call fcn.005a2a60
push 4
push edi
mov dword [esi + 0x24], edi
call fcn.005a2690
add esp, 0xc
inc dword [esi + 0x78]
lea edi, [esi + 0x78]
push 0
push ebp
call fcn.0054f770
push 0
push ebp
call fcn.0054f770
push dword [esp + 0x40]
call fcn.0054f320
mov ebx, dword [esp + 0x2c]
add esp, 0x14
cmp ebx, eax
jne 0x5a9bf9
push dword [esp + 0x34]
call fcn.0054f320
inc eax
add esp, 4
cmp ebx, eax
jne 0x5a9bf9
push 0
push dword [esp + 0x38]
call fcn.0054f330
push 1
push dword [esp + 0x3c]
mov dword [esp + 0x24], eax
call fcn.0054f330
push 0
push dword [esp + 0x44]
mov dword [esp + 0x28], eax
call fcn.0054f330
mov ecx, dword [esi + 0x28]
add esp, 0x18
mov dword [esp + 0x1c], eax
test ecx, ecx
jne 0x5a9b52
test eax, eax
je 0x5a9cf0
cmp dword [esi + 0x2c], 0
jne 0x5a9b63
cmp dword [esp + 0x10], 0
je 0x5a9cf0
cmp dword [esi + 0x30], 0
jne 0x5a9b74
cmp dword [esp + 0x14], 0
je 0x5a9cf0
test eax, eax
je 0x5a9b90
push ecx
call fcn.005a2a60
mov eax, dword [esp + 0x20]
push 4
push eax
mov dword [esi + 0x28], eax
call fcn.005a2690
add esp, 0xc
cmp dword [esp + 0x10], 0
je 0x5a9bb1
push dword [esi + 0x2c]
call fcn.005a2a60
mov eax, dword [esp + 0x14]
push 4
push eax
mov dword [esi + 0x2c], eax
call fcn.005a2690
add esp, 0xc
cmp dword [esp + 0x14], 0
je 0x5a9bd2
push dword [esi + 0x30]
call fcn.005a2a60
mov eax, dword [esp + 0x18]
push 4
push eax
mov dword [esi + 0x30], eax
call fcn.005a2690
add esp, 0xc
inc dword [esi + 0x78]
push 0
push dword [esp + 0x34]
call fcn.0054f770
push 0
push dword [esp + 0x3c]
call fcn.0054f770
push 0
push dword [esp + 0x48]
call fcn.0054f770
add esp, 0x18
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x10], eax
cmp ebx, 2
jle 0x5a9d01
push ebx
push 0
call fcn.0054f440
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
je 0x5a9cf0
mov dword [esp + 0x14], 2
push ebp
call fcn.0054f940
push dword [esp + 0x34]
mov edi, eax
mov dword [esp + 0x28], edi
call fcn.0054f940
push dword [esp + 0x3c]
mov ebx, eax
call fcn.0054f940
add esp, 0xc
mov ebp, eax
test edi, edi
je 0x5a9cdf
test ebx, ebx
je 0x5a9cdf
test ebp, ebp
je 0x5a9cdf
push 0x334
push str.crypto_rsa_rsa_lib.c
push 0x14
call fcn.0054c7a0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x5a9cdf
mov eax, dword [esp + 0x20]
push 4
push eax
mov dword [edi], eax
mov dword [edi + 4], ebx
mov dword [edi + 8], ebp
call fcn.005a2690
push 4
push dword [edi + 4]
call fcn.005a2690
push 4
push dword [edi + 8]
call fcn.005a2690
mov ebx, dword [esp + 0x34]
push edi
push ebx
call fcn.0054f8c0
mov eax, dword [esp + 0x34]
add esp, 0x20
mov ebp, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x18]
jl 0x5a9c28
push esi
mov dword [esi + 0x4c], ebx
call fcn.0060dc10
add esp, 4
test eax, eax
mov eax, dword [esp + 0x10]
jne 0x5a9cfa
mov dword [esi + 0x4c], eax
push 0x60db30
push dword [esp + 0x20]
call fcn.0054f530
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
mov ebx, dword [esp + 0x18]
lea edi, [esi + 0x78]
test eax, eax
je 0x5a9d13
push 0x60db50
push eax
call fcn.0054f530
add esp, 8
xor eax, eax
cmp ebx, 2
setg al
inc dword [edi]
pop edi
mov dword [esi + 8], eax
mov eax, 1
pop esi
pop ebp
pop ebx
add esp, 0x14
ret