Function at 0x10009d40
Capabilities:
Check if file exists
Get socket status
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28c
mov eax, dword [0x1012f5f0]
xor eax, esp
mov dword [esp + 0x288], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x48
mov esi, ecx
xor edi, edi
lea ecx, [esp + 0x23c]
push edi
push ecx
mov dword [esp + 0x24], eax
call fcn.10027680
add esp, 0xc
cmp dword [0x1013c128], edi
je 0x10009db5
add dword [0x1013c128], 1
lea edx, [esp + 0x10]
push edx
call fcn.10017440
add esp, 4
test eax, eax
je 0x10009de8
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x288]
xor ecx, esp
call fcn.1001d3e9
mov esp, ebp
pop ebp
ret
mov ebx, 1
mov dword [0x1013c128], ebx
call fcn.10013e50
cmp eax, edi
jne 0x10009dd1
mov dword [0x1013c120], ebx
jmp 0x10009d8a
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x288]
xor ecx, esp
call fcn.1001d3e9
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
cmp eax, edi
mov ebx, dword [esp + 0x10]
je 0x10009f2b
lea ecx, [esp + 0x1c]
push 4
push ecx
call fcn.100195d0
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x10009e17
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10009e71
xor eax, eax
cmp edi, 0xffffffff
setg al
lea eax, [eax + eax - 1]
cmp eax, 1
jne 0x10009e71
push 0x30
call dword [0x10138fd4]
add esp, 4
test eax, eax
je 0x10009f1b
mov ecx, dword [esp + 0x18]
mov dword [eax], ebx
mov edx, dword [esp + 0x1c]
mov dword [eax + 8], edx
mov dword [eax + 4], 2
mov dword [eax + 0x20], fcn.10009c80
mov dword [eax + 0x24], ecx
mov edx, dword [ebx + 0x34]
push eax
mov dword [eax + 0x28], edx
mov dword [eax + 0x2c], 0
call fcn.10013750
jmp 0x10009f18
mov eax, dword [esi]
push 0x10
lea ecx, [esp + 0x288]
push ecx
push eax
call fcn.10019aa0
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
jne 0x10009e98
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10009f0c
xor eax, eax
cmp edi, 0xffffffff
setg al
lea eax, [eax + eax - 1]
cmp eax, 1
jne 0x10009f0c
push 0x30
call dword [0x10138fd4]
add esp, 4
test eax, eax
je 0x10009f1b
mov dword [eax], ebx
mov edx, dword [esp + 0x284]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x288]
mov dword [eax + 0xc], ecx
mov edx, dword [esp + 0x28c]
mov dword [eax + 0x10], edx
mov ecx, dword [esp + 0x290]
mov edx, dword [esp + 0x18]
mov dword [eax + 0x14], ecx
mov dword [eax + 4], 0x17
mov dword [eax + 0x20], fcn.10009c80
mov dword [eax + 0x24], edx
mov ecx, dword [ebx + 0x34]
push eax
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], 0
call fcn.10013750
jmp 0x10009f18
mov edi, dword [esp + 0x18]
mov ecx, dword [esi]
push ebx
call fcn.10012d90
add esp, 4
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
jne 0x10009df6
xor edi, edi
lea edx, [esp + 0x130]
push edx
push ebx
lea esi, [esp + 0x30]
mov dword [esp + 0x30], edi
mov dword [esp + 0x138], edi
call fcn.10016b50
mov esi, eax
add esp, 8
cmp esi, edi
je 0x1000a041
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.100160a0
add esp, 8
push eax
push edi
lea ecx, [esp + 0x138]
push ecx
lea edx, [esp + 0x34]
push edx
push esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x1000a041
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov eax, edx
imul eax, eax, 0x3e8
sub ecx, eax
imul ecx, ecx, 0x3e8
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edx
push ecx
lea edx, [esp + 0x134]
push edx
call fcn.10014650
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.100148d0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.10014b20
push ebx
lea esi, [esp + 0x2c]
call fcn.10014cf0
add esp, 0x1c
xor esi, esi
cmp dword [ebx + 0x78], edi
jle 0x1000a017
mov ecx, dword [ebx + 0x74]
cmp dword [ecx + edi + 0x54], 0
je 0x1000a00a
lea edx, [esp + 0x10]
push edx
push esi
mov eax, ebx
call fcn.10015060
add esp, 8
add esi, 1
add edi, 0x58
cmp esi, dword [ebx + 0x78]
jl 0x10009ff0
xor edi, edi
lea eax, [esp + 0x130]
push eax
push ebx
lea esi, [esp + 0x30]
mov dword [esp + 0x30], edi
mov dword [esp + 0x138], edi
call fcn.10016b50
mov esi, eax
add esp, 8
cmp esi, edi
jne 0x10009f55
push ebx
call fcn.10012bd0
add esp, 4
call fcn.10013f00
mov ecx, dword [esp + 0x294]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.1001d3e9
mov esp, ebp
pop ebp
ret