Function at 0x49f570
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x3b8
mov eax, dword [0x597f98]
xor eax, esp
mov dword [esp + 0x3b4], eax
cmp byte [0x58b74b], 0
mov eax, dword [esp + 0x3bc]
mov dword [esp], eax
je 0x49f840
lea ecx, [esp + 4]
push ecx
call fcn.00401210
lea edx, [esp + 4]
push edx
call fcn.005240c0
cmp dword [0x599138], 0
jne 0x49f80e
lea eax, [esp + 0x224]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x49f7ed
push esi
push 0x15c
call fcn.004a47f0
push 0x15c
mov esi, eax
push 0
push esi
mov dword [0x599138], esi
call fcn.00549fc0
add esp, 0xc
lea ecx, [esi + 0x4c]
xor eax, eax
nop
mov edx, dword [eax + 0x58d2a8]
mov dword [ecx], edx
add eax, 4
add ecx, 4
cmp eax, 0x110
jb 0x49f600
mov eax, dword [0x599030]
cmp byte [eax], 0
je 0x49f68f
push ebp
push eax
call fcn.00522910
mov ebp, eax
test ebp, ebp
je 0x49f688
push ebx
push str.HTTP_SERVER_STRINGS
push ebp
call fcn.0049f9b0
mov ebx, eax
test ebx, ebx
je 0x49f681
push edi
mov esi, 0x4c
mov edi, 0x58d3b8
sub edi, esi
jmp 0x49f650
mov eax, dword [edi + esi]
push 0
push eax
push ebx
call fcn.0049f990
test eax, eax
je 0x49f66f
push eax
call fcn.0051c5d0
mov ecx, dword [0x599138]
mov dword [esi + ecx], eax
add esi, 4
cmp esi, 0x15c
jb 0x49f650
push ebx
call fcn.0049f8a0
pop edi
push ebp
call fcn.004a4850
pop ebx
mov esi, dword [0x599138]
pop ebp
mov edx, dword [0x58b74c]
mov dword [esi + 0x14], edx
mov eax, dword [0x59902c]
push eax
call fcn.0051c5d0
mov ecx, dword [0x599138]
push 0
push 0x49f290
push 0
mov dword [ecx + 0x18], eax
call fcn.004c05e0
push eax
call fcn.00411990
mov edx, dword [0x599138]
push 0
push 0
push 0
push 0x49f4a0
push str.EVERYTHING_HTTP_SERVER
push 0
mov dword [edx + 0x1c], eax
call fcn.004aa4c0
push 0
push 0
call dword [0x598d18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.EVERYTHING_HTTP_SERVER
push str.EVERYTHING_HTTP_SERVER
push 0
call fcn.004aa610
mov ecx, dword [0x599138]
mov dword [ecx + 8], eax
mov ax, word [esp + 0x228]
cmp al, 1
je 0x49f74a
cmp ah, 1
je 0x49f74a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [0x58eecc]
push eax
mov eax, dword [edx + 0x116c]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.00524440
add esp, 0xc
jmp 0x49f7c9
mov edx, dword [0x59902c]
cmp byte [edx], 0
je 0x49f7bd
lea eax, [esp + 0x118]
push eax
call fcn.00401210
mov eax, dword [0x59902c]
push eax
lea ecx, [esp + 0x11c]
push ecx
call fcn.005251d0
mov esi, eax
test esi, esi
je 0x49f7ae
jmp 0x49f780
mov eax, dword [esp + 0x120]
cmp byte [eax], 0
je 0x49f79a
lea edx, [esp + 8]
push edx
call fcn.0049a9f0
test eax, eax
je 0x49f7ae
push esi
lea eax, [esp + 0x11c]
push eax
call fcn.005251d0
mov esi, eax
test esi, esi
jne 0x49f780
lea ecx, [esp + 0x118]
push ecx
call fcn.00401230
jmp 0x49f7c9
lea edx, [esp + 8]
push edx
xor eax, eax
call fcn.0049a9f0
mov eax, dword [0x599138]
cmp dword [eax + 0xc], 0
pop esi
je 0x49f7e6
push str.HTTP_server_online._r_n
push 0
call fcn.0049a320
add esp, 8
jmp 0x49f836
call fcn.0049f1a0
jmp 0x49f80e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [0x58eecc]
mov edx, dword [ecx + 0x1180]
push eax
push edx
lea eax, [esp + 0xc]
push eax
call fcn.00524440
add esp, 0xc
mov eax, dword [esp + 0xc]
cmp byte [eax], 0
je 0x49f836
push eax
mov eax, dword [0x58eecc]
mov ecx, dword [eax + 0x1134]
mov edx, dword [eax]
mov eax, dword [esp + 4]
push ecx
push edx
push 0x10
push eax
call fcn.004aa1d0
add esp, 0x14
lea ecx, [esp + 4]
push ecx
call fcn.00401230
mov ecx, dword [esp + 0x3b4]
xor ecx, esp
call fcn.005498cd
add esp, 0x3b8
ret 4