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

Disassembly:
mov eax, 0x14
call fcn.00655180
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0x24]
push edi
test ebp, ebp
je 0x56ef80
cmp dword [esp + 0x30], 0
je 0x56ef80
cmp dword [esp + 0x34], 0
je 0x56ef80
push ebp
call fcn.005210f0
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, 2
jl 0x56ef80
push 1
push ebp
call fcn.005212e0
push 0
push ebp
mov edi, eax
call fcn.005212e0
mov ebx, eax
add esp, 0x10
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x56ed20
test ebx, ebx
je 0x56ef80
cmp dword [esi + 0x24], 0
jne 0x56ed2e
test edi, edi
je 0x56ef80
test ebx, ebx
je 0x56ed46
push eax
call fcn.0051ef30
push 4
push ebx
mov dword [esi + 0x20], ebx
call fcn.0051f740
add esp, 0xc
test edi, edi
je 0x56ed60
push dword [esi + 0x24]
call fcn.0051ef30
push 4
push edi
mov dword [esi + 0x24], edi
call fcn.0051f740
add esp, 0xc
inc dword [esi + 0x78]
lea edi, [esi + 0x78]
push 0
push ebp
call fcn.00520d10
push 0
push ebp
call fcn.00520d10
push dword [esp + 0x40]
call fcn.005210f0
mov ebx, dword [esp + 0x2c]
add esp, 0x14
cmp ebx, eax
jne 0x56ee89
push dword [esp + 0x34]
call fcn.005210f0
inc eax
add esp, 4
cmp ebx, eax
jne 0x56ee89
push 0
push dword [esp + 0x38]
call fcn.005212e0
push 1
push dword [esp + 0x3c]
mov dword [esp + 0x24], eax
call fcn.005212e0
push 0
push dword [esp + 0x44]
mov dword [esp + 0x28], eax
call fcn.005212e0
mov ecx, dword [esi + 0x28]
add esp, 0x18
mov dword [esp + 0x1c], eax
test ecx, ecx
jne 0x56ede2
test eax, eax
je 0x56ef80
cmp dword [esi + 0x2c], 0
jne 0x56edf3
cmp dword [esp + 0x10], 0
je 0x56ef80
cmp dword [esi + 0x30], 0
jne 0x56ee04
cmp dword [esp + 0x14], 0
je 0x56ef80
test eax, eax
je 0x56ee20
push ecx
call fcn.0051ef30
mov eax, dword [esp + 0x20]
push 4
push eax
mov dword [esi + 0x28], eax
call fcn.0051f740
add esp, 0xc
cmp dword [esp + 0x10], 0
je 0x56ee41
push dword [esi + 0x2c]
call fcn.0051ef30
mov eax, dword [esp + 0x14]
push 4
push eax
mov dword [esi + 0x2c], eax
call fcn.0051f740
add esp, 0xc
cmp dword [esp + 0x14], 0
je 0x56ee62
push dword [esi + 0x30]
call fcn.0051ef30
mov eax, dword [esp + 0x18]
push 4
push eax
mov dword [esi + 0x30], eax
call fcn.0051f740
add esp, 0xc
inc dword [esi + 0x78]
push 0
push dword [esp + 0x34]
call fcn.00520d10
push 0
push dword [esp + 0x3c]
call fcn.00520d10
push 0
push dword [esp + 0x48]
call fcn.00520d10
add esp, 0x18
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x10], eax
cmp ebx, 2
jle 0x56ef91
push ebx
push 0
call fcn.00521080
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
je 0x56ef80
mov dword [esp + 0x14], 2
push ebp
call fcn.00521100
push dword [esp + 0x34]
mov edi, eax
mov dword [esp + 0x28], edi
call fcn.00521100
push dword [esp + 0x3c]
mov ebx, eax
call fcn.00521100
add esp, 0xc
mov ebp, eax
test edi, edi
je 0x56ef6f
test ebx, ebx
je 0x56ef6f
test ebp, ebp
je 0x56ef6f
push 0x334
push str.crypto_rsa_rsa_lib.c
push 0x14
call fcn.0050ec40
mov edi, eax
add esp, 0xc
test edi, edi
je 0x56ef6f
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.0051f740
push 4
push dword [edi + 4]
call fcn.0051f740
push 4
push dword [edi + 8]
call fcn.0051f740
mov ebx, dword [esp + 0x34]
push edi
push ebx
call fcn.00521180
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 0x56eeb8
push esi
mov dword [esi + 0x4c], ebx
call fcn.00603340
add esp, 4
test eax, eax
mov eax, dword [esp + 0x10]
jne 0x56ef8a
mov dword [esi + 0x4c], eax
push 0x603480
push dword [esp + 0x20]
call fcn.00521120
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 0x56efa3
push 0x603440
push eax
call fcn.00521120
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