Function at 0x49f5e0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x3b8
mov eax, dword [0x596fb8]
xor eax, esp
mov dword [esp + 0x3b4], eax
cmp byte [0x58a76c], 0
mov eax, dword [esp + 0x3bc]
mov dword [esp], eax
je 0x49f8b0
lea ecx, [esp + 4]
push ecx
call fcn.00401210
lea edx, [esp + 4]
push edx
call fcn.00523df0
cmp dword [0x598158], 0
jne 0x49f87e
lea eax, [esp + 0x224]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x49f85d
push esi
push 0x15c
call fcn.004a49a0
push 0x15c
mov esi, eax
push 0
push esi
mov dword [0x598158], esi
call fcn.00549e40
add esp, 0xc
lea ecx, [esi + 0x4c]
xor eax, eax
nop
mov edx, dword [eax + 0x58c2c8]
mov dword [ecx], edx
add eax, 4
add ecx, 4
cmp eax, 0x110
jb 0x49f670
mov eax, dword [0x598050]
cmp byte [eax], 0
je 0x49f6ff
push ebp
push eax
call fcn.005225d0
mov ebp, eax
test ebp, ebp
je 0x49f6f8
push ebx
push str.HTTP_SERVER_STRINGS
push ebp
call fcn.0049fa20
mov ebx, eax
test ebx, ebx
je 0x49f6f1
push edi
mov esi, 0x4c
mov edi, 0x58c3d8
sub edi, esi
jmp 0x49f6c0
mov eax, dword [edi + esi]
push 0
push eax
push ebx
call fcn.0049fa00
test eax, eax
je 0x49f6df
push eax
call fcn.0051c290
mov ecx, dword [0x598158]
mov dword [esi + ecx], eax
add esi, 4
cmp esi, 0x15c
jb 0x49f6c0
push ebx
call fcn.0049f910
pop edi
push ebp
call fcn.004a4a00
pop ebx
mov esi, dword [0x598158]
pop ebp
mov edx, dword [0x58a75c]
mov dword [esi + 0x14], edx
mov eax, dword [0x59804c]
push eax
call fcn.0051c290
mov ecx, dword [0x598158]
push 0
push 0x49f300
push 0
mov dword [ecx + 0x18], eax
call fcn.004c0300
push eax
call fcn.004119c0
mov edx, dword [0x598158]
push 0
push 0
push 0
push 0x49f510
push str.EVERYTHING_HTTP_SERVER
push 0
mov dword [edx + 0x1c], eax
call fcn.004aa1e0
push 0
push 0
call dword [0x597d38]
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.004aa330
mov ecx, dword [0x598158]
mov dword [ecx + 8], eax
mov ax, word [esp + 0x228]
cmp al, 1
je 0x49f7ba
cmp ah, 1
je 0x49f7ba
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [0x58deec]
push eax
mov eax, dword [edx + 0x116c]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.00524170
add esp, 0xc
jmp 0x49f839
mov edx, dword [0x59804c]
cmp byte [edx], 0
je 0x49f82d
lea eax, [esp + 0x118]
push eax
call fcn.00401210
mov eax, dword [0x59804c]
push eax
lea ecx, [esp + 0x11c]
push ecx
call fcn.00524f00
mov esi, eax
test esi, esi
je 0x49f81e
jmp 0x49f7f0
mov eax, dword [esp + 0x120]
cmp byte [eax], 0
je 0x49f80a
lea edx, [esp + 8]
push edx
call fcn.0049aa30
test eax, eax
je 0x49f81e
push esi
lea eax, [esp + 0x11c]
push eax
call fcn.00524f00
mov esi, eax
test esi, esi
jne 0x49f7f0
lea ecx, [esp + 0x118]
push ecx
call fcn.00401230
jmp 0x49f839
lea edx, [esp + 8]
push edx
xor eax, eax
call fcn.0049aa30
mov eax, dword [0x598158]
cmp dword [eax + 0xc], 0
pop esi
je 0x49f856
push str.HTTP_server_online._r_n
push 0
call fcn.0049a360
add esp, 8
jmp 0x49f8a6
call fcn.0049f210
jmp 0x49f87e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [0x58deec]
mov edx, dword [ecx + 0x1180]
push eax
push edx
lea eax, [esp + 0xc]
push eax
call fcn.00524170
add esp, 0xc
mov eax, dword [esp + 0xc]
cmp byte [eax], 0
je 0x49f8a6
push eax
mov eax, dword [0x58deec]
mov ecx, dword [eax + 0x1134]
mov edx, dword [eax]
mov eax, dword [esp + 4]
push ecx
push edx
push 0x10
push eax
call fcn.004a9ef0
add esp, 0x14
lea ecx, [esp + 4]
push ecx
call fcn.00401230
mov ecx, dword [esp + 0x3b4]
xor ecx, esp
call fcn.00549750
add esp, 0x3b8
ret 4