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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10054908
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x10062648]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x10062648]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
cmp dword [0x1008b968], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x20], edx
mov edx, dword [ebp + 0x24]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], edx
jne 0x100354e2
push 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, 0x2af9
jmp 0x100357e9
xor ecx, ecx
call fcn.10009630
call fcn.10032a00
test esi, esi
je 0x1003552d
push 0x1008b220
push esi
call fcn.1003a949
add esp, 8
test eax, eax
jne 0x1003552d
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [esp + 0x28]
push ebx
push edi
push ecx
push edx
push eax
jmp 0x100357e2
mov eax, dword [ebp + 0x10]
cmp eax, 0xc
je 0x1003553d
test eax, eax
jne 0x100357c1
test esi, esi
je 0x100357c1
call fcn.10018290
test eax, eax
jne 0x100357be
push 0x10059cb4
push esi
call fcn.1003a949
add esp, 8
test eax, eax
je 0x100357be
mov ecx, esi
call fcn.10018150
test eax, eax
je 0x100357be
call fcn.10032e60
test al, al
je 0x100355a9
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [esp + 0x28]
push ebx
push edi
push edx
push eax
push ecx
jmp 0x100357e2
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x48], esp
push esi
call fcn.10001a10
call fcn.1000af60
lea edx, [esp + 0x2c]
push edx
push 0
push 0
push 0x1008b848
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], 0xffffffff
mov byte [esp + 0x23], 0
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x60], esp
push eax
call fcn.10001a10
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x78], esp
push esi
mov dword [esp + 0xc8], 0
call fcn.10001a10
lea edx, [esp + 0x57]
mov ecx, 0x1008be10
mov dword [esp + 0xc4], 0xffffffff
call fcn.10015050
cmp byte [esp + 0x13], 0
jne 0x10035650
push 0
push 0x1008b848
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
xor ecx, ecx
cmp dword [esp + 0x34], ecx
mov edx, esi
sete cl
push ecx
push 1
mov ecx, eax
call fcn.1002e500
add esp, 0xc
cmp dword [esp + 0x30], 0
jne 0x1003565e
cmp byte [esp + 0x13], 1
jne 0x10035699
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [esp + 0x20]
push ebx
push edi
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
push eax
push esi
call fcn.100352f0
test eax, eax
je 0x100357e9
cmp dword [esp + 0x30], 0
jne 0x100357e9
lea ecx, [esp + 0x2c]
push ecx
push esi
mov dword [esp + 0x34], 0
call fcn.1002df20
test eax, eax
jne 0x100356e7
cmp dword [esp + 0x30], eax
jne 0x100354cd
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [esp + 0x20]
push ebx
push edi
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
push eax
push esi
call fcn.100352f0
jmp 0x100357e9
test edi, edi
je 0x100356f8
cmp dword [edi + 4], 0
jne 0x100356f8
mov dword [edi + 4], 2
push 0x31
lea ecx, [esp + 0x41]
push 0
push ecx
mov byte [esp + 0x48], 0
call fcn.100469a0
add esp, 0xc
test edi, edi
je 0x10035733
test byte [edi], 4
je 0x10035725
push 0x1005cd00
push 0x32
lea edx, [esp + 0x44]
push edx
jmp 0x1003573f
push 0x10059cb4
push 0x32
lea eax, [esp + 0x44]
push eax
jmp 0x1003573f
push 0x1005cd00
push 0x32
lea ecx, [esp + 0x44]
push ecx
call fcn.1003b891
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
add esp, 0xc
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [esp + 0x28]
push ebx
push edi
push eax
push ecx
push edx
lea eax, [esp + 0x60]
push eax
call dword [0x1008b968]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
jne 0x100357b3
test ebx, ebx
je 0x100357b3
mov ebx, dword [ebx]
test ebx, ebx
je 0x100357b3
mov ecx, ebx
mov ebx, dword [esp + 0x2c]
mov esi, 0x10
cmp dword [ecx + 0x10], esi
jb 0x100357ac
cmp dword [ecx + 4], 2
jne 0x100357ac
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x100357ac
mov dword [edx + 4], ebx
mov ecx, dword [ecx + 0x28]
test ecx, ecx
jne 0x10035797
push eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, edi
jmp 0x100357e9
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x28]
push ebx
push edi
push ecx
push eax
push edx
push esi
call dword [0x1008b968]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.1003999f
mov esp, ebp
pop ebp
ret 0x20