Function at 0x40f9b0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44812b
mov eax, dword fs:[0]
push eax
sub esp, 0x34c
mov eax, dword [0x45d320]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x310]
push eax
push 0x101
xor esi, esi
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40fce6
lea ecx, [ebp - 0x350]
call fcn.0042161b
lea ecx, [ebp - 0x348]
call fcn.0042161b
lea ecx, [ebp - 0x340]
call fcn.0042161b
lea ecx, [ebp - 0x338]
call fcn.0042161b
lea ecx, [ebp - 0x314]
call fcn.00421464
lea ecx, [ebp - 0x314]
mov dword [ebp - 4], esi
call fcn.0042146a
test eax, eax
je 0x40fcce
push 0x7b
push edi
lea ecx, [ebp - 0x314]
call fcn.00421573
test eax, eax
je 0x40fcce
push 0x30
lea ecx, [ebp - 0x84]
push esi
push ecx
call fcn.0042c3d0
add esp, 0xc
lea edx, [ebp - 0x31c]
push edx
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 0x84], 0x1b
call fcn.004219b1
add esp, 4
mov ecx, eax
call fcn.004217a1
mov ecx, dword [ebp - 0x31c]
mov edx, dword [ebp - 0x318]
push 0x30
lea eax, [ebp - 0x84]
mov dword [ebp - 0x5c], ecx
push eax
lea ecx, [ebp - 0x314]
mov dword [ebp - 0x58], edx
call fcn.004214a1
test eax, eax
je 0x40fcce
push 0x2710
lea ecx, [ebp - 0x318]
push ecx
lea ecx, [ebp - 0x314]
mov dword [ebp - 0x318], esi
call fcn.004214ef
test eax, eax
je 0x40fcce
cmp dword [ebp - 0x318], esi
je 0x40fcce
lea edx, [ebp - 0x18]
push edx
call fcn.004219b1
add esp, 4
push eax
lea ecx, [ebp - 0x338]
call fcn.0042177c
push 0x44
lea eax, [ebp - 0xd0]
push esi
push eax
call fcn.0042c3d0
add esp, 0xc
push 0x44
lea ecx, [ebp - 0xd0]
push ecx
lea ecx, [ebp - 0x314]
call fcn.004214c2
test eax, eax
je 0x40fcce
movzx eax, byte [ebp - 0xd0]
movzx edx, byte [ebp - 0xcf]
lea ecx, [ebp - 0xb8]
shr eax, 6
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x354], edx
mov dword [ebp - 0x358], eax
call fcn.00421625
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x350]
call fcn.0042177c
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x18]
call fcn.00421625
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x348]
call fcn.0042177c
lea edx, [ebp - 0xa8]
push edx
lea ecx, [ebp - 0x18]
call fcn.00421625
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x340]
call fcn.0042177c
lea ecx, [ebp - 0x350]
push ecx
lea ecx, [ebp - 0x338]
call fcn.004218b0
fstp qword [ebp - 0x18]
lea edx, [ebp - 0x340]
push edx
lea ecx, [ebp - 0x348]
call fcn.004218b0
fsubr qword [ebp - 0x18]
lea eax, [ebp - 0x350]
push eax
lea ecx, [ebp - 0x348]
fstp qword [ebp - 0x330]
call fcn.004218b0
fstp qword [ebp - 0x18]
lea ecx, [ebp - 0x338]
push ecx
lea ecx, [ebp - 0x340]
call fcn.004218b0
fadd qword [ebp - 0x18]
lea edx, [ebp - 0x30]
push edx
fmul qword [0x4550b8]
lea ecx, [ebp - 0x348]
fstp qword [ebp - 0x328]
call fcn.00421943
push 0xac
lea eax, [ebp - 0x180]
push esi
push eax
call fcn.0042c3d0
add esp, 0xc
lea ecx, [ebp - 0x180]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
test eax, eax
je 0x40fc86
xor eax, eax
lea edx, [ebp - 0x20]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
push edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x180]
push ecx
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
test eax, eax
je 0x40fc86
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], esi
jmp 0x40fc8f
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
movzx esi, ax
shr edx, 0x10
shr eax, 0x10
dec eax
mov dword [ebp - 0x48], edx
movzx edx, cx
shr ecx, 0x10
mov dword [ebp - 0x44], eax
movzx eax, word [ebp - 0x24]
mov dword [ebp - 0x50], ecx
lea ecx, [ebp - 0x54]
sub esi, 0x76c
push ecx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x54], eax
call fcn.004307bc
add esp, 4
mov dword [ebx], eax
mov esi, 1
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea ecx, [ebp - 0x314]
mov dword [ebp - 4], 0xffffffff
call fcn.0042156e
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042bed8
mov esp, ebp
pop ebp
ret