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

Disassembly:
mov eax, 0x68
call fcn.005349d0
mov eax, dword [0x597004]
xor eax, esp
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x78]
push ebx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x84]
push ebp
mov ebp, dword [esp + 0x7c]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 0x1bc]
push edi
mov dword [esp + 0x1c], ecx
or edi, 0xffffffff
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], eax
call fcn.004aec70
mov ebx, eax
test ebx, ebx
jne 0x501444
lea eax, [edi - 1]
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.004058df
add esp, 0x68
ret
push esi
call fcn.004843e0
mov esi, eax
test esi, esi
jne 0x501458
lea edi, [eax - 2]
jmp 0x501761
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + 0x170]
test edx, edx
je 0x50149d
push 0
push ebx
push esi
lea eax, [ecx + 0x10]
push eax
push ecx
push dword [esp + 0x34]
call edx
add esp, 0x18
test eax, eax
js 0x501761
je 0x50175c
cmp eax, 2
jne 0x501517
mov dword [esp + 0x28], 1
jmp 0x501517
lea edx, [eax + 0x120]
mov dword [esp + 0x20], 0xc
nop dword [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x50175c
add ecx, 4
add edx, 4
sub dword [esp + 0x20], 4
jae 0x5014b0
push 0
call fcn.00451160
push eax
mov eax, dword [esp + 0x2c]
push 0x20
add eax, 0x130
push eax
push ebx
call fcn.004aee50
add esp, 0x14
test eax, eax
jle 0x501761
mov eax, dword [esp + 0x14]
add eax, 0x10
push eax
mov eax, dword [esp + 0x28]
add eax, 0x150
push eax
push 0
call fcn.004b4560
push eax
push esi
call fcn.004849e0
add esp, 0x14
test eax, eax
jle 0x501761
push ebx
call fcn.004af080
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
js 0x501761
push esi
call fcn.00468790
mov ecx, dword [esp + 0x1c]
add eax, 0x10
add eax, ecx
add esp, 4
cmp ebp, eax
jle 0x50175c
sub ebp, ecx
push ebp
push dword [esp + 0x18]
push ebx
call fcn.004af060
add esp, 0xc
test eax, eax
jle 0x501761
push 0
lea eax, [esp + 0x38]
push eax
push ebx
call fcn.004aeda0
add esp, 0xc
test eax, eax
jle 0x501761
push ebx
call fcn.004aec00
mov ebx, dword [esp + 0x18]
push dword [esp + 0x1c]
lea eax, [ebx + ebp]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00461660
add esp, 0x10
push esi
test eax, eax
je 0x5015ba
call fcn.004843c0
add esp, 4
mov eax, 2
pop esi
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.004058df
add esp, 0x68
ret
call fcn.00468790
add eax, 0x10
add eax, ebx
push esi
mov dword [esp + 0x24], eax
call fcn.00468790
mov ecx, 0xfffffff0
sub ecx, eax
push 0xc6f
add ebp, ecx
push str.ssl_t1_lib.c
push ebp
call fcn.0044a4d0
mov edi, eax
add esp, 0x14
test edi, edi
je 0x50172d
push ebp
push dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
push edi
push esi
call fcn.00484a00
add esp, 0x14
test eax, eax
jle 0x50172d
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
add eax, edi
push eax
push esi
call fcn.00484870
add esp, 0xc
push esi
test eax, eax
jg 0x50165a
call fcn.004843c0
push 0xc77
push str.ssl_t1_lib.c
push edi
call fcn.0044a500
add esp, 0x10
mov eax, 2
pop esi
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.004058df
add esp, 0x68
ret
mov eax, dword [esp + 0x1c]
add dword [esp + 0x14], eax
call fcn.004843c0
push dword [esp + 0x14]
lea eax, [esp + 0x24]
mov dword [esp + 0x24], edi
push eax
push 0
call fcn.005017c0
mov esi, eax
mov eax, edi
sub eax, dword [esp + 0x2c]
add dword [esp + 0x20], eax
push 0xc81
push str.ssl_t1_lib.c
push edi
call fcn.0044a500
add esp, 0x1c
test esi, esi
je 0x501710
cmp dword [esp + 0x10], 0
jne 0x5016ef
cmp dword [esi + 0x38], 0
jne 0x5016ef
mov edi, dword [esp + 0x8c]
test edi, edi
je 0x5016c7
push edi
push dword [esp + 0x30]
lea eax, [esi + 0x3c]
push eax
call fcn.00518100
add esp, 0xc
mov eax, dword [esp + 0x30]
mov dword [esi + 0x38], edi
mov dword [eax], esi
xor eax, eax
cmp dword [esp + 0x28], eax
pop esi
pop edi
setne al
pop ebp
add eax, 3
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.004058df
add esp, 0x68
ret
push esi
call fcn.004f17c0
add esp, 4
mov eax, 2
pop esi
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.004058df
add esp, 0x68
ret
call fcn.00457590
pop esi
pop edi
pop ebp
mov eax, 2
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.004058df
add esp, 0x68
ret
push esi
call fcn.004843c0
push 0xc72
push str.ssl_t1_lib.c
push edi
call fcn.0044a500
add esp, 0x10
or eax, 0xffffffff
pop esi
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.004058df
add esp, 0x68
ret
mov edi, 2
push esi
call fcn.004843c0
push ebx
call fcn.004aec00
mov ecx, dword [esp + 0x7c]
add esp, 8
mov eax, edi
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.004058df
add esp, 0x68
ret