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

Disassembly:
mov eax, 0x6c
call fcn.005fffa0
mov eax, dword [0x6a0f4c]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x7c]
push ebx
push ebp
push esi
mov esi, dword [ecx + 0x5e0]
xor ebx, ebx
push edi
mov edi, dword [esp + 0x88]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x94]
xor ebp, ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], ebx
cmp edi, ebx
jne 0x58a655
lea esi, [ebx + 3]
jmp 0x58a984
mov eax, dword [ecx + 4]
mov edx, dword [eax + 0x64]
test byte [edx + 0x30], 8
jne 0x58a671
mov eax, dword [eax]
cmp eax, 0x304
jl 0x58a671
cmp eax, 0x10000
jne 0x58a683
cmp dword [ecx + 0x58c], ebx
je 0x58a683
mov esi, 4
jmp 0x58a984
cmp edi, 0x20
jae 0x58a692
mov esi, 4
jmp 0x58a984
call fcn.004f0eb0
mov dword [esp + 0x10], eax
test eax, eax
jne 0x58a6a6
xor esi, esi
jmp 0x58a984
call fcn.004ddb50
mov ebp, eax
test ebp, ebp
jne 0x58a6b8
xor esi, esi
jmp 0x58a984
mov eax, dword [esi + 0x14c]
test eax, eax
je 0x58a6ff
mov ecx, dword [esp + 0x10]
push 0
push ecx
mov ecx, dword [esp + 0x20]
push ebp
lea edx, [ecx + 0x10]
push edx
push ecx
mov ecx, dword [esp + 0x3c]
push ecx
call eax
add esp, 0x18
test eax, eax
jl 0x58a97f
jne 0x58a6f1
mov esi, 4
jmp 0x58a984
cmp eax, 2
jne 0x58a7a3
jmp 0x58a79b
mov edx, dword [esp + 0x18]
lea eax, [esi + 0x138]
mov ecx, 0x10
sub edx, eax
mov ebx, dword [edx + eax]
cmp ebx, dword [eax]
jne 0x58a7d5
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x58a710
push 0
call fcn.004877e0
mov edx, dword [esi + 0x148]
push eax
mov eax, dword [esp + 0x18]
push 0x20
push edx
push eax
call fcn.004f08f0
add esp, 0x14
test eax, eax
jle 0x58a97b
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x148]
add ecx, 0x10
push ecx
add edx, 0x20
push edx
push 0
call fcn.004fb490
push eax
push ebp
call fcn.004de8e0
add esp, 0x14
test eax, eax
jle 0x58a97b
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x64]
test byte [ecx + 0x30], 8
mov ebx, dword [esp + 0x14]
jne 0x58a7a3
mov eax, dword [eax]
cmp eax, 0x304
jl 0x58a7a3
cmp eax, 0x10000
je 0x58a7a3
mov dword [esp + 0x24], 1
mov edx, dword [esp + 0x10]
push edx
call fcn.004f0bf0
mov esi, eax
add esp, 4
test esi, esi
je 0x58a97f
push ebp
call fcn.004a71d0
lea eax, [eax + esi + 0x10]
add esp, 4
cmp edi, eax
ja 0x58a7e3
mov esi, 4
jmp 0x58a984
mov ebx, dword [esp + 0x14]
mov esi, 4
jmp 0x58a984
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub edi, esi
push edi
push ecx
push edx
call fcn.004f0b20
add esp, 0xc
test eax, eax
jle 0x58a97f
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x3c]
push eax
push ecx
call fcn.004f0b40
add esp, 0xc
test eax, eax
jle 0x58a97f
push esi
mov esi, dword [esp + 0x1c]
lea edx, [edi + esi]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.004cb420
add esp, 0xc
test eax, eax
je 0x58a840
mov esi, 4
jmp 0x58a984
push ebp
call fcn.004a71d0
lea ecx, [eax + esi + 0x10]
push ebp
mov dword [esp + 0x28], ecx
call fcn.004a71d0
mov edx, 0xfffffff0
sub edx, eax
push 0x5c1
add edi, edx
push str.ssl_t1_lib.c
push edi
call fcn.0048e660
mov esi, eax
add esp, 0x14
test esi, esi
je 0x58a966
mov eax, dword [esp + 0x20]
push edi
push eax
lea ecx, [esp + 0x24]
push ecx
push esi
push ebp
call fcn.004ddf90
add esp, 0x14
test eax, eax
jle 0x58a966
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x34]
push edx
add eax, esi
push eax
push ebp
call fcn.004de920
add esp, 0xc
test eax, eax
jg 0x58a8cd
push 0x5c9
push str.ssl_t1_lib.c
push esi
call fcn.0048e710
add esp, 0xc
mov esi, 4
jmp 0x58a984
mov eax, dword [esp + 0x1c]
add eax, dword [esp + 0x34]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], esi
call fcn.0059f830
push 0x5d2
mov edx, esi
sub edx, dword [esp + 0x30]
push str.ssl_t1_lib.c
add dword [esp + 0x30], edx
push esi
mov ebx, eax
call fcn.0048e710
add esp, 0x18
test ebx, ebx
je 0x58a95a
cmp dword [esp + 0x1c], 0
je 0x58a924
push ebx
call fcn.00583c50
add esp, 4
xor ebx, ebx
lea esi, [ebx + 4]
jmp 0x58a984
mov esi, dword [esp + 0x90]
test esi, esi
je 0x58a94a
mov eax, dword [esp + 0x2c]
push esi
push eax
lea ecx, [ebx + 0x14c]
push ecx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov dword [ebx + 0x148], esi
xor edx, edx
cmp dword [esp + 0x24], edx
setne dl
add edx, 5
mov esi, edx
jmp 0x58a984
call fcn.0047df10
mov esi, 4
jmp 0x58a984
push 0x5c4
push str.ssl_t1_lib.c
push esi
call fcn.0048e710
add esp, 0xc
jmp 0x58a97f
mov ebx, dword [esp + 0x14]
mov esi, 1
push ebp
call fcn.004ddb70
mov eax, dword [esp + 0x14]
push eax
call fcn.004f0c40
mov ebp, dword [esp + 0x30]
mov eax, dword [ebp + 0x5e0]
mov ecx, dword [eax + 0x238]
add esp, 8
test ecx, ecx
je 0x58aa3c
cmp esi, 3
je 0x58a9c3
cmp esi, 4
je 0x58a9c3
cmp esi, 5
je 0x58a9c3
cmp esi, 6
jne 0x58aa3c
mov edx, edi
cmp edi, 0x10
jbe 0x58a9cf
mov edx, 0x10
mov eax, dword [eax + 0x23c]
push eax
push esi
push edx
mov edx, dword [esp + 0x24]
push edx
push ebx
push ebp
call ecx
add esp, 0x18
cmp eax, 4
ja case.0x58a9e9.0
jmp dword [eax*4 + 0x58aa98]
push ebx
mov esi, 2
call fcn.00583c50
add esp, 4
xor ebx, ebx
jmp 0x58aa3c
cmp esi, 3
je 0x58aa11
cmp esi, 4
je 0x58aa11
mov esi, 4
push ebx
call fcn.00583c50
add esp, 4
xor ebx, ebx
jmp 0x58aa3c
cmp esi, 5
je 0x58aa28
cmp esi, 6
jne case.0x58a9e9.0
xor ecx, ecx
cmp eax, 3
setne cl
add ecx, 5
mov esi, ecx
jmp 0x58aa3c
mov esi, 1
cmp dword [ebp + 0x58c], 0
je 0x58aa61
mov eax, dword [ebp + 4]
mov edx, dword [eax + 0x64]
test byte [edx + 0x30], 8
jne 0x58aa7a
mov eax, dword [eax]
cmp eax, 0x304
jl 0x58aa7a
cmp eax, 0x10000
je 0x58aa7a
cmp esi, 3
jl 0x58aa7a
cmp esi, 4
jle 0x58aa70
cmp esi, 6
jne 0x58aa7a
mov dword [ebp + 0x55c], 1
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x78]
pop edi
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005fff12
add esp, 0x6c
ret