Function at 0x49f560
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x3b8
mov eax, dword [0x597fb8]
xor eax, esp
mov dword [esp + 0x3b4], eax
cmp byte [0x58b76c], 0
mov eax, dword [esp + 0x3bc]
mov dword [esp], eax
je 0x49f830
lea ecx, [esp + 4]
push ecx
call fcn.00523650
lea edx, [esp + 4]
push edx
call fcn.005240c0
cmp dword [0x599158], 0
jne 0x49f7fe
lea eax, [esp + 0x224]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x49f7dd
push esi
push 0x15c
call fcn.004a47b0
push 0x15c
mov esi, eax
push 0
push esi
mov dword [0x599158], esi
call fcn.0054a020
add esp, 0xc
lea ecx, [esi + 0x4c]
xor eax, eax
nop
mov edx, dword [eax + 0x58d2c8]
mov dword [ecx], edx
add eax, 4
add ecx, 4
cmp eax, 0x110
jb 0x49f5f0
mov eax, dword [0x599050]
cmp byte [eax], 0
je 0x49f67f
push ebp
push eax
call fcn.00522920
mov ebp, eax
test ebp, ebp
je 0x49f678
push ebx
push str.HTTP_SERVER_STRINGS
push ebp
call fcn.0049f9a0
mov ebx, eax
test ebx, ebx
je 0x49f671
push edi
mov esi, 0x4c
mov edi, 0x58d3d8
sub edi, esi
jmp 0x49f640
mov eax, dword [edi + esi]
push 0
push eax
push ebx
call fcn.0049f980
test eax, eax
je 0x49f65f
push eax
call fcn.0051c5e0
mov ecx, dword [0x599158]
mov dword [esi + ecx], eax
add esi, 4
cmp esi, 0x15c
jb 0x49f640
push ebx
call fcn.0049f890
pop edi
push ebp
call fcn.004a4810
pop ebx
mov esi, dword [0x599158]
pop ebp
mov edx, dword [0x58b75c]
mov dword [esi + 0x14], edx
mov eax, dword [0x59904c]
push eax
call fcn.0051c5e0
mov ecx, dword [0x599158]
push 0
push 0x49f280
push 0
mov dword [ecx + 0x18], eax
call fcn.004c05b0
push eax
call fcn.00411950
mov edx, dword [0x599158]
push 0
push 0
push 0
push 0x49f490
push str.EVERYTHING_HTTP_SERVER
push 0
mov dword [edx + 0x1c], eax
call fcn.004aa4a0
push 0
push 0
call dword [0x598d38]
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.004aa5f0
mov ecx, dword [0x599158]
mov dword [ecx + 8], eax
mov ax, word [esp + 0x228]
cmp al, 1
je 0x49f73a
cmp ah, 1
je 0x49f73a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [0x58eeec]
push eax
mov eax, dword [edx + 0x116c]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.00524440
add esp, 0xc
jmp 0x49f7b9
mov edx, dword [0x59904c]
cmp byte [edx], 0
je 0x49f7ad
lea eax, [esp + 0x118]
push eax
call fcn.00523650
mov eax, dword [0x59904c]
push eax
lea ecx, [esp + 0x11c]
push ecx
call fcn.005251d0
mov esi, eax
test esi, esi
je 0x49f79e
jmp 0x49f770
mov eax, dword [esp + 0x120]
cmp byte [eax], 0
je 0x49f78a
lea edx, [esp + 8]
push edx
call fcn.0049a9e0
test eax, eax
je 0x49f79e
push esi
lea eax, [esp + 0x11c]
push eax
call fcn.005251d0
mov esi, eax
test esi, esi
jne 0x49f770
lea ecx, [esp + 0x118]
push ecx
call fcn.00527550
jmp 0x49f7b9
lea edx, [esp + 8]
push edx
xor eax, eax
call fcn.0049a9e0
mov eax, dword [0x599158]
cmp dword [eax + 0xc], 0
pop esi
je 0x49f7d6
push str.HTTP_server_online._r_n
push 0
call fcn.0049a310
add esp, 8
jmp 0x49f826
call fcn.0049f190
jmp 0x49f7fe
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [0x58eeec]
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 0x49f826
push eax
mov eax, dword [0x58eeec]
mov ecx, dword [eax + 0x1134]
mov edx, dword [eax]
mov eax, dword [esp + 4]
push ecx
push edx
push 0x10
push eax
call fcn.004aa1b0
add esp, 0x14
lea ecx, [esp + 4]
push ecx
call fcn.00527550
mov ecx, dword [esp + 0x3b4]
xor ecx, esp
call fcn.00549930
add esp, 0x3b8
ret 4