Function at 0x10045090
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x10159db1
mov eax, dword fs:[0]
push eax
mov eax, 0x14c0
call fcn.10059010
mov eax, dword [0x101b0cd0]
xor eax, esp
mov dword [esp + 0x14bc], eax
push ebp
push esi
push edi
mov eax, dword [0x101b0cd0]
xor eax, esp
push eax
lea eax, [esp + 0x14d0]
mov dword fs:[0], eax
lea eax, [esp + 0x3c]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10045130
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push str.CNetHelper::GetNetworkInterfaceList
lea eax, [esp + 0x24]
call fcn.10018050
push esi
push 0x101a36c8
push str._s____d_
push 0x98
lea ecx, [esp + 0x30]
mov dword [esp + 0x14e8], 0
push ecx
call fcn.1001ca60
add esp, 0x14
lea ecx, [esp + 0x20]
call fcn.10018140
xor eax, eax
jmp 0x10045310
xor edi, edi
push edi
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
mov dword [esp + 0x1c], esi
cmp esi, 0xffffffff
jne 0x10045180
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push str.CNetHelper::GetNetworkInterfaceList
lea eax, [esp + 0x24]
call fcn.10018050
push esi
push str.Could_not_create_socket.
push str._s____d_
push 0xa1
lea edx, [esp + 0x30]
mov dword [esp + 0x14e8], 1
push edx
jmp 0x10045118
push edi
push edi
lea eax, [esp + 0x18]
push eax
push 0x1300
lea ecx, [esp + 0x1dc]
push ecx
push edi
push edi
push 0x4004747f
push esi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
jne 0x100451fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.WS2_32.dll_closesocket]
push str.CNetHelper::GetNetworkInterfaceList
lea eax, [esp + 0x24]
call fcn.10018050
push edi
push str.WSAIoctl_failed_with
push str._s____d_
lea edx, [esp + 0x2c]
push 0xb0
push edx
mov dword [esp + 0x14ec], 2
call fcn.1001d2e0
add esp, 0x14
lea ecx, [esp + 0x20]
call fcn.10018140
xor eax, eax
jmp 0x10045310
mov ebp, dword [esp + 0x10]
mov eax, 0xaf286bcb
mul ebp
mov eax, ebp
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 6
mov dword [esp + 0x18], edi
test eax, eax
jbe 0x10045301
lea esi, [esp + 0x1cc]
mov eax, dword [esi]
test al, 1
je 0x100452d7
test al, 2
je 0x100452d7
movzx edx, byte [esi + 0xa]
mov al, byte [esi + 8]
mov cl, byte [esi + 9]
mov byte [esp + 0x16], dl
mov dl, byte [esi + 0xb]
test al, al
jne 0x1004525a
test cl, cl
jne 0x1004526d
cmp byte [esp + 0x16], cl
jne 0x1004526d
test dl, dl
jmp 0x1004526b
cmp al, 0x7f
jne 0x1004526d
test cl, cl
jne 0x1004526d
cmp byte [esp + 0x16], cl
jne 0x1004526d
cmp dl, 1
je 0x100452d7
test ebx, ebx
je 0x100452d6
push 0xc
call fcn.10046953
mov ecx, dword [esi]
mov dword [ebx + edi*4], eax
mov dword [eax], ecx
movzx eax, byte [esi + 8]
mov edx, dword [ebx + edi*4]
mov byte [edx + 4], al
movzx edx, byte [esi + 9]
mov ecx, dword [ebx + edi*4]
mov byte [ecx + 5], dl
movzx ecx, byte [esi + 0xa]
mov eax, dword [ebx + edi*4]
mov byte [eax + 6], cl
movzx eax, byte [esi + 0xb]
mov edx, dword [ebx + edi*4]
mov byte [edx + 7], al
movzx edx, byte [esi + 0x20]
mov ecx, dword [ebx + edi*4]
mov byte [ecx + 8], dl
movzx ecx, byte [esi + 0x21]
mov eax, dword [ebx + edi*4]
mov byte [eax + 9], cl
movzx eax, byte [esi + 0x22]
mov edx, dword [ebx + edi*4]
mov byte [edx + 0xa], al
movzx edx, byte [esi + 0x23]
mov ecx, dword [ebx + edi*4]
mov byte [ecx + 0xb], dl
mov ebp, dword [esp + 0x14]
add esp, 4
inc edi
mov ecx, dword [esp + 0x18]
mov eax, 0xaf286bcb
mul ebp
mov eax, ebp
sub eax, edx
shr eax, 1
add eax, edx
inc ecx
shr eax, 6
add esi, 0x4c
mov dword [esp + 0x18], ecx
cmp ecx, eax
jb 0x10045225
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, edi
mov ecx, dword [esp + 0x14d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x14bc]
xor ecx, esp
call fcn.1005392f
add esp, 0x14cc
ret