Function at 0x49d3f0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x3b0
cmp byte [0x57e729], 0
je 0x49d6b2
lea eax, [esp]
push eax
call fcn.0051ec40
lea ecx, [esp]
push ecx
call fcn.0051f690
cmp dword [0x58b364], 0
jne 0x49d67e
lea edx, [esp + 0x220]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x49d65d
push esi
push 0x15c
call fcn.004a2340
push 0x15c
mov esi, eax
push 0
push esi
mov dword [0x58b364], esi
call fcn.00545659
add esp, 0xc
lea ecx, [esi + 0x4c]
xor eax, eax
mov edx, dword [eax + 0x5801c0]
mov dword [ecx], edx
add eax, 4
add ecx, 4
cmp eax, 0x110
jb 0x49d465
mov eax, dword [0x58b260]
cmp byte [eax], 0
je 0x49d4ef
push ebp
push eax
call fcn.0051e150
mov ebp, eax
test ebp, ebp
je 0x49d4e8
push ebx
push str.HTTP_SERVER_STRINGS
push ebp
call fcn.0049d810
mov ebx, eax
test ebx, ebx
je 0x49d4e1
push edi
mov esi, 0x4c
mov edi, 0x5802d0
sub edi, esi
mov eax, dword [edi + esi]
push 0
push eax
push ebx
call fcn.0049d7f0
test eax, eax
je 0x49d4cf
push eax
call fcn.00517e60
mov ecx, dword [0x58b364]
mov dword [esi + ecx], eax
add esi, 4
cmp esi, 0x15c
jb 0x49d4b0
push ebx
call fcn.0049d700
pop edi
push ebp
call fcn.004a23a0
pop ebx
mov esi, dword [0x58b364]
pop ebp
mov edx, dword [0x57e71c]
mov dword [esi + 0x14], edx
mov eax, dword [0x58b25c]
push eax
call fcn.00517e60
mov ecx, dword [0x58b364]
push 0
push 0x49d120
push 0
mov dword [ecx + 0x18], eax
call fcn.004bc700
push eax
call fcn.00411430
mov edx, dword [0x58b364]
push 0
push 0
push 0
push 0x49d320
push str.EVERYTHING_HTTP_SERVER
push 0
mov dword [edx + 0x1c], eax
call fcn.004a7b80
push 0
push 0
call dword [0x58af6c]
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.004a7ca0
mov ecx, dword [0x58b364]
mov dword [ecx + 8], eax
mov ax, word [esp + 0x224]
cmp al, 1
je 0x49d5aa
cmp ah, 1
je 0x49d5aa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [0x581de4]
push eax
mov eax, dword [edx + 0x116c]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.0051fa10
add esp, 0xc
jmp 0x49d629
mov edx, dword [0x58b25c]
cmp byte [edx], 0
je 0x49d61d
lea eax, [esp + 0x114]
push eax
call fcn.0051ec40
mov eax, dword [0x58b25c]
push eax
lea ecx, [esp + 0x118]
push ecx
call fcn.005206e0
mov esi, eax
test esi, esi
je 0x49d60e
jmp 0x49d5e0
mov ecx, dword [esp + 0x11c]
cmp byte [ecx], 0
je 0x49d5fa
lea edx, [esp + 4]
push edx
call fcn.00498a00
test eax, eax
je 0x49d60e
push esi
lea eax, [esp + 0x118]
push eax
call fcn.005206e0
mov esi, eax
test esi, esi
jne 0x49d5e0
lea ecx, [esp + 0x114]
push ecx
call fcn.00522920
jmp 0x49d629
lea edx, [esp + 4]
push edx
xor ecx, ecx
call fcn.00498a00
mov eax, dword [0x58b364]
cmp dword [eax + 0xc], 0
pop esi
je 0x49d656
push str.HTTP_server_online._r_n
push 0
call fcn.00498370
add esp, 8
lea ecx, [esp]
push ecx
call fcn.00522920
add esp, 0x3b0
ret 4
call fcn.0049d030
jmp 0x49d67e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [0x581de4]
mov edx, dword [ecx + 0x1180]
push eax
push edx
lea eax, [esp + 8]
push eax
call fcn.0051fa10
add esp, 0xc
mov eax, dword [esp + 8]
cmp byte [eax], 0
je 0x49d6a9
push eax
mov eax, dword [0x581de4]
mov ecx, dword [eax + 0x1134]
mov edx, dword [eax]
mov eax, dword [esp + 0x3b8]
push ecx
push edx
push 0x10
push eax
call fcn.004a78c0
add esp, 0x14
lea ecx, [esp]
push ecx
call fcn.00522920
add esp, 0x3b0
ret 4