Function at 0x10006d17
Capabilities:
Initialize winsock library

Disassembly:
push ebp
sub esp, 0x390
lea ebp, [esp - 4]
mov eax, dword [0x100677a0]
xor eax, ebp
mov dword [ebp + 0x390], eax
push 0x2c
mov eax, 0x10051b6e
call fcn.1003943c
mov edi, ecx
mov esi, dword [ebp + 0x3b8]
sub esp, 0x1c
lea eax, [ebp + 0x39c]
mov dword [ebp - 0x1c], esp
mov ecx, esp
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.10002c2f
mov ecx, edi
call fcn.10006a2d
cmp al, bl
jne 0x10006dbb
sub esp, 0x1c
lea eax, [ebp + 0x39c]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push eax
call fcn.10002c2f
mov ecx, edi
call fcn.10006a93
cmp al, bl
jne 0x10006dbb
push ebx
push 1
lea ecx, [ebp + 0x39c]
call fcn.10001c69
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x390]
xor ecx, ebp
call fcn.1003942d
add ebp, 0x394
leave
ret 0x20
lea eax, [ebp]
push eax
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x10006e58
cmp dword [0x10068ca8], 4
jg 0x10006e3f
push str.sysNetworkAFIndependent::RWCStringToSockaddr_WSAStartup_failed
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x14], ebx
call fcn.10002be7
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 1
jae 0x10006dfb
lea eax, [ebp - 0x34]
push ebx
push ebx
push eax
push 0x83
push str.._src_sysNetworkAFIndependent.cpp
push 4
push 2
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.1000655c
add esp, 0x24
push ebx
push 1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], bl
call fcn.10001c69
push dword [ebp - 0x14]
call fcn.10001242
cmp dword [ebp - 0x14], ebx
pop ecx
je 0x10006e3f
push dword [ebp - 0x14]
call fcn.10038f50
pop ecx
mov byte [ebp - 0xd], bl
push ebx
push 1
lea ecx, [ebp + 0x39c]
call fcn.10001c69
mov al, byte [ebp - 0xd]
jmp 0x10006d96
mov eax, dword [ebp + 0x3b0]
inc eax
push eax
call fcn.10037406
cmp eax, ebx
setne byte [ebp - 0xd]
cmp byte [ebp - 0xd], bl
pop ecx
mov dword [ebp - 0x18], eax
jne 0x10006ec3
lea eax, [ebp + 0x190]
push str.sysNetworkAFIndependent::RWCStringToSockaddr_new_failed
push eax
call fcn.1003ada5
cmp dword [0x10068ca8], 4
pop ecx
pop ecx
jg 0x10006fc0
lea eax, [ebp + 0x190]
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x14], ebx
call fcn.10002be7
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 2
jae 0x10006eb6
lea eax, [ebp - 0x34]
push ebx
push ebx
push eax
push 0x90
jmp 0x10006f84
cmp dword [ebp + 0x3b4], 0x10
mov eax, dword [ebp + 0x3a0]
jae 0x10006ed8
lea eax, [ebp + 0x3a0]
push eax
push dword [ebp - 0x18]
call fcn.10039ea0
sub esp, 0x14
lea eax, [ebp + 0x39c]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.10002c2f
mov ecx, edi
call fcn.10006a2d
neg al
lea ecx, [ebp - 0x1c]
push ecx
push esi
push ebx
mov dword [ebp - 0x1c], 0x80
sbb eax, eax
and eax, 0xffffffeb
add eax, 0x17
movzx eax, ax
mov word [esi], ax
movsx eax, ax
push eax
push dword [ebp - 0x18]
call dword [sym.imp.WS2_32.dll_WSAStringToAddressA]
cmp eax, 0xffffffff
setne byte [ebp - 0xd]
cmp byte [ebp - 0xd], bl
jne 0x10006fc0
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
lea eax, [ebp + 0x190]
push str.sysNetworkAFIndependent::RWCStringToSockaddr_WSAStringToAddress_failed__WSAGetLastError___d_
push eax
call fcn.1003ada5
add esp, 0xc
cmp dword [0x10068ca8], 4
jg 0x10006fc0
lea eax, [ebp + 0x190]
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x14], ebx
call fcn.10002be7
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 3
jae 0x10006f7c
lea eax, [ebp - 0x34]
push ebx
push ebx
push eax
push 0x9d
push str.._src_sysNetworkAFIndependent.cpp
push 4
push 2
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.1000655c
add esp, 0x24
push ebx
push 1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], bl
call fcn.10001c69
push dword [ebp - 0x14]
call fcn.10001242
cmp dword [ebp - 0x14], ebx
pop ecx
je 0x10006fc0
push dword [ebp - 0x14]
call fcn.10038f50
pop ecx
cmp dword [ebp - 0x18], ebx
je 0x10006fce
push dword [ebp - 0x18]
call fcn.10038f50
pop ecx
call dword [sym.imp.WSOCK32.dll_WSACleanup]
mov al, byte [ebp - 0xd]
mov byte [ebp - 0xd], al
jmp 0x10006e42