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

Disassembly:
mov eax, 0x18
call fcn.005f62e0
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x28]
push edi
test ebp, ebp
je 0x50cb7d
cmp dword [esp + 0x34], 0
je 0x50cb7d
cmp dword [esp + 0x38], 0
je 0x50cb7d
push ebp
call fcn.004db850
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, 2
jl 0x50cb7d
push 1
push ebp
call fcn.004dba40
push 0
push ebp
mov edi, eax
call fcn.004dba40
mov ebx, eax
add esp, 0x10
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x50c910
test ebx, ebx
je 0x50cb7d
cmp dword [esi + 0x24], 0
jne 0x50c91e
test edi, edi
je 0x50cb7d
test ebx, ebx
je 0x50c936
push eax
call fcn.004de620
push 4
push ebx
mov dword [esi + 0x20], ebx
call fcn.004dedf0
add esp, 0xc
test edi, edi
je 0x50c950
push dword [esi + 0x24]
call fcn.004de620
push 4
push edi
mov dword [esi + 0x24], edi
call fcn.004dedf0
add esp, 0xc
inc dword [esi + 0x78]
lea edi, [esi + 0x78]
push 0
push ebp
call fcn.004db470
push 0
push ebp
call fcn.004db470
mov ebx, dword [esp + 0x44]
push ebx
call fcn.004db850
add esp, 0x14
cmp dword [esp + 0x10], eax
jne 0x50ca6e
push dword [esp + 0x38]
call fcn.004db850
inc eax
add esp, 4
cmp dword [esp + 0x10], eax
jne 0x50ca6e
push 0
push dword [esp + 0x3c]
call fcn.004dba40
push 1
push ebx
mov dword [esp + 0x28], eax
call fcn.004dba40
push 0
push ebx
mov dword [esp + 0x2c], eax
call fcn.004dba40
mov ecx, dword [esi + 0x28]
add esp, 0x18
mov dword [esp + 0x1c], eax
test ecx, ecx
jne 0x50c9cd
test eax, eax
je 0x50cb7d
cmp dword [esi + 0x2c], 0
jne 0x50c9de
cmp dword [esp + 0x14], 0
je 0x50cb7d
cmp dword [esi + 0x30], 0
jne 0x50c9ef
cmp dword [esp + 0x18], 0
je 0x50cb7d
test eax, eax
je 0x50ca0b
push ecx
call fcn.004de620
mov eax, dword [esp + 0x20]
push 4
push eax
mov dword [esi + 0x28], eax
call fcn.004dedf0
add esp, 0xc
cmp dword [esp + 0x14], 0
je 0x50ca2c
push dword [esi + 0x2c]
call fcn.004de620
mov eax, dword [esp + 0x18]
push 4
push eax
mov dword [esi + 0x2c], eax
call fcn.004dedf0
add esp, 0xc
cmp dword [esp + 0x18], 0
je 0x50ca4d
push dword [esi + 0x30]
call fcn.004de620
mov eax, dword [esp + 0x1c]
push 4
push eax
mov dword [esi + 0x30], eax
call fcn.004dedf0
add esp, 0xc
inc dword [esi + 0x78]
push 0
push ebx
call fcn.004db470
push 0
push ebx
call fcn.004db470
push 0
push dword [esp + 0x4c]
call fcn.004db470
add esp, 0x18
mov eax, dword [esp + 0x10]
mov ecx, edi
mov edx, dword [esi + 0x4c]
mov dword [esp + 0x1c], edx
cmp eax, 2
jle 0x50cb8e
push eax
push 0
call fcn.004db7e0
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x50cb7d
mov dword [esp + 0x14], 2
push ebp
mov dword [esp + 0x28], edi
call fcn.004db860
mov edi, eax
push ebx
mov dword [esp + 0x28], edi
call fcn.004db860
push dword [esp + 0x40]
mov ebx, eax
call fcn.004db860
add esp, 0xc
mov ebp, eax
test edi, edi
je 0x50cb6c
test ebx, ebx
je 0x50cb6c
test ebp, ebp
je 0x50cb6c
push 0x334
push str.crypto_rsa_rsa_lib.c
push 0x14
call fcn.004c0bd0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x50cb6c
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.004dedf0
push 4
push dword [edi + 4]
call fcn.004dedf0
push 4
push dword [edi + 8]
call fcn.004dedf0
push edi
push dword [esp + 0x34]
call fcn.004db8e0
mov ecx, dword [esp + 0x34]
add esp, 0x20
mov eax, dword [esp + 0x24]
inc ecx
mov edi, eax
mov ebp, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x14], ecx
cmp ecx, dword [esp + 0x10]
jl 0x50caa3
mov eax, dword [esp + 0x18]
push esi
mov dword [esi + 0x4c], eax
call fcn.005722b0
add esp, 4
test eax, eax
jne 0x50cb87
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x4c], eax
push 0x5723f0
push dword [esp + 0x1c]
call fcn.004db880
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
mov edx, dword [esp + 0x1c]
lea ecx, [esi + 0x78]
test edx, edx
je 0x50cba2
push 0x5723b0
push edx
call fcn.004db880
add esp, 8
mov ecx, edi
xor eax, eax
cmp dword [esp + 0x10], 2
pop edi
setg al
inc dword [ecx]
mov dword [esi + 8], eax
mov eax, 1
pop esi
pop ebp
pop ebx
add esp, 0x18
ret