Function at 0x49f560
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 0x49f830
lea ecx, [esp + 4]
push ecx
call fcn.00401210
lea edx, [esp + 4]
push edx
call fcn.00523cc0
cmp dword [0x598158], 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.004a48f0
push 0x15c
mov esi, eax
push 0
push esi
mov dword [0x598158], esi
call fcn.00549d20
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 0x49f5f0
mov eax, dword [0x598050]
cmp byte [eax], 0
je 0x49f67f
push ebp
push eax
call fcn.00522520
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, 0x58c3d8
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.0051c1e0
mov ecx, dword [0x598158]
mov dword [esi + ecx], eax
add esi, 4
cmp esi, 0x15c
jb 0x49f640
push ebx
call fcn.0049f890
pop edi
push ebp
call fcn.004a4950
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.0051c1e0
mov ecx, dword [0x598158]
push 0
push 0x49f280
push 0
mov dword [ecx + 0x18], eax
call fcn.004c0270
push eax
call fcn.00411980
mov edx, dword [0x598158]
push 0
push 0
push 0
push 0x49f490
push str.EVERYTHING_HTTP_SERVER
push 0
mov dword [edx + 0x1c], eax
call fcn.004aa140
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.004aa290
mov ecx, dword [0x598158]
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 [0x58deec]
push eax
mov eax, dword [edx + 0x116c]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.00524040
add esp, 0xc
jmp 0x49f7b9
mov edx, dword [0x59804c]
cmp byte [edx], 0
je 0x49f7ad
lea eax, [esp + 0x118]
push eax
call fcn.00401210
mov eax, dword [0x59804c]
push eax
lea ecx, [esp + 0x11c]
push ecx
call fcn.00524dd0
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.00524dd0
mov esi, eax
test esi, esi
jne 0x49f770
lea ecx, [esp + 0x118]
push ecx
call fcn.00523250
jmp 0x49f7b9
lea edx, [esp + 8]
push edx
xor eax, eax
call fcn.0049a9e0
mov eax, dword [0x598158]
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 [0x58deec]
mov edx, dword [ecx + 0x1180]
push eax
push edx
lea eax, [esp + 0xc]
push eax
call fcn.00524040
add esp, 0xc
mov eax, dword [esp + 0xc]
cmp byte [eax], 0
je 0x49f826
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.004a9e40
add esp, 0x14
lea ecx, [esp + 4]
push ecx
call fcn.00523250
mov ecx, dword [esp + 0x3b4]
xor ecx, esp
call fcn.0054962d
add esp, 0x3b8
ret 4