Function at 0x45bef0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a7b77
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x617960]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1e0], esi
mov dword [ebp - 0x1dc], 0
lea eax, [ebp - 0x1a8]
mov dword [ebp - 4], 1
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp dword [ebp + 0x20], 0x10
lea ecx, [ebp + 0xc]
mov dword [esi + 0x14], 0xf
cmovae ecx, dword [ebp + 0xc]
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov dword [ebp - 0x1dc], 1
test eax, eax
jne 0x45c366
push ecx
mov byte [ebp - 0x18], al
mov dword [ebp - 0x17], eax
mov word [ebp - 0x13], ax
mov byte [ebp - 0x11], al
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x45c366
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
movsx eax, byte [eax]
push eax
lea eax, [ebp - 0x18]
push 0x5fee84
push eax
call fcn.0044b5a0
lea eax, [ebp - 0x18]
push eax
call fcn.00493e8c
add esp, 0x10
test eax, eax
jns 0x45bfdc
lea eax, [ebp - 0x18]
push eax
call fcn.00493e8c
add eax, 0x100
push eax
lea eax, [ebp - 0x18]
push 0x5fee84
push eax
call fcn.0044b5a0
add esp, 0x10
cmp byte [ebp - 0x18], 0
mov dword [ebp - 0x1ac], 0xf
mov dword [ebp - 0x1b0], 0
mov byte [ebp - 0x1c0], 0
jne 0x45c001
xor ecx, ecx
jmp 0x45c010
lea ecx, [ebp - 0x18]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45c007
sub ecx, edx
push ecx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c0]
call fcn.00437730
push 0x5ffab4
lea edx, [ebp - 0x1c0]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1d8]
call fcn.0043ee70
add esp, 4
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0043ecc0
cmp dword [ebp - 0x1c4], 0x10
jb 0x45c064
push dword [ebp - 0x1d8]
call fcn.0047e2e9
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1ac], 0x10
mov dword [ebp - 0x1c4], 0xf
mov dword [ebp - 0x1c8], 0
mov byte [ebp - 0x1d8], 0
jb 0x45c09a
push dword [ebp - 0x1c0]
call fcn.0047e2e9
add esp, 4
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
movsx eax, byte [eax + 1]
push eax
lea eax, [ebp - 0x18]
push 0x5fee84
push eax
call fcn.0044b5a0
lea eax, [ebp - 0x18]
push eax
call fcn.00493e8c
add esp, 0x10
test eax, eax
jns 0x45c0e2
lea eax, [ebp - 0x18]
push eax
call fcn.00493e8c
add eax, 0x100
push eax
lea eax, [ebp - 0x18]
push 0x5fee84
push eax
call fcn.0044b5a0
add esp, 0x10
cmp byte [ebp - 0x18], 0
mov dword [ebp - 0x1ac], 0xf
mov dword [ebp - 0x1b0], 0
mov byte [ebp - 0x1c0], 0
jne 0x45c107
xor ecx, ecx
jmp 0x45c119
lea ecx, [ebp - 0x18]
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45c110
sub ecx, edx
push ecx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c0]
call fcn.00437730
push 0x5ffab4
lea edx, [ebp - 0x1c0]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1d8]
call fcn.0043ee70
add esp, 4
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.0043ecc0
cmp dword [ebp - 0x1c4], 0x10
jb 0x45c16d
push dword [ebp - 0x1d8]
call fcn.0047e2e9
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1ac], 0x10
mov dword [ebp - 0x1c4], 0xf
mov dword [ebp - 0x1c8], 0
mov byte [ebp - 0x1d8], 0
jb 0x45c1a3
push dword [ebp - 0x1c0]
call fcn.0047e2e9
add esp, 4
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
movsx eax, byte [eax + 2]
push eax
lea eax, [ebp - 0x18]
push 0x5fee84
push eax
call fcn.0044b5a0
lea eax, [ebp - 0x18]
push eax
call fcn.00493e8c
add esp, 0x10
test eax, eax
jns 0x45c1eb
lea eax, [ebp - 0x18]
push eax
call fcn.00493e8c
add eax, 0x100
push eax
lea eax, [ebp - 0x18]
push 0x5fee84
push eax
call fcn.0044b5a0
add esp, 0x10
cmp byte [ebp - 0x18], 0
mov dword [ebp - 0x1ac], 0xf
mov dword [ebp - 0x1b0], 0
mov byte [ebp - 0x1c0], 0
jne 0x45c210
xor ecx, ecx
jmp 0x45c21f
lea ecx, [ebp - 0x18]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45c216
sub ecx, edx
push ecx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c0]
call fcn.00437730
push 0x5ffab4
lea edx, [ebp - 0x1c0]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1d8]
call fcn.0043ee70
add esp, 4
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.0043ecc0
cmp dword [ebp - 0x1c4], 0x10
jb 0x45c273
push dword [ebp - 0x1d8]
call fcn.0047e2e9
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1ac], 0x10
mov dword [ebp - 0x1c4], 0xf
mov dword [ebp - 0x1c8], 0
mov byte [ebp - 0x1d8], 0
jb 0x45c2a9
push dword [ebp - 0x1c0]
call fcn.0047e2e9
add esp, 4
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
movsx eax, byte [eax + 3]
push eax
lea eax, [ebp - 0x18]
push 0x5fee84
push eax
call fcn.0044b5a0
lea eax, [ebp - 0x18]
push eax
call fcn.00493e8c
add esp, 0x10
test eax, eax
jns 0x45c2f1
lea eax, [ebp - 0x18]
push eax
call fcn.00493e8c
add eax, 0x100
push eax
lea eax, [ebp - 0x18]
push 0x5fee84
push eax
call fcn.0044b5a0
add esp, 0x10
cmp byte [ebp - 0x18], 0
mov dword [ebp - 0x1ac], 0xf
mov dword [ebp - 0x1b0], 0
mov byte [ebp - 0x1c0], 0
jne 0x45c316
xor ecx, ecx
jmp 0x45c329
lea ecx, [ebp - 0x18]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45c320
sub ecx, edx
push ecx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c0]
call fcn.00437730
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x1c0]
mov byte [ebp - 4], 8
push eax
mov ecx, esi
call fcn.0043ecc0
cmp dword [ebp - 0x1ac], 0x10
jb 0x45c366
push dword [ebp - 0x1c0]
call fcn.0047e2e9
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
cmp dword [ebp + 0x20], 0x10
jb 0x45c37d
push dword [ebp + 0xc]
call fcn.0047e2e9
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049355b
mov esp, ebp
pop ebp
ret 0x1c