Function at 0x45f760
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b69a7
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x629960]
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 0x45fbd6
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 0x45fbd6
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
movsx eax, byte [eax]
push eax
lea eax, [ebp - 0x18]
push 0x60f2ec
push eax
call fcn.00447b30
lea eax, [ebp - 0x18]
push eax
call fcn.004a231e
add esp, 0x10
test eax, eax
jns 0x45f84c
lea eax, [ebp - 0x18]
push eax
call fcn.004a231e
add eax, 0x100
push eax
lea eax, [ebp - 0x18]
push 0x60f2ec
push eax
call fcn.00447b30
add esp, 0x10
cmp byte [ebp - 0x18], 0
mov dword [ebp - 0x1ac], 0xf
mov dword [ebp - 0x1b0], 0
mov byte [ebp - 0x1c0], 0
jne 0x45f871
xor ecx, ecx
jmp 0x45f880
lea ecx, [ebp - 0x18]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45f877
sub ecx, edx
push ecx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c0]
call fcn.00437370
push 0x60e2a8
lea edx, [ebp - 0x1c0]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1d8]
call fcn.004407a0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004405f0
cmp dword [ebp - 0x1c4], 0x10
jb 0x45f8d4
push dword [ebp - 0x1d8]
call fcn.0048c32c
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 0x45f90a
push dword [ebp - 0x1c0]
call fcn.0048c32c
add esp, 4
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
movsx eax, byte [eax + 1]
push eax
lea eax, [ebp - 0x18]
push 0x60f2ec
push eax
call fcn.00447b30
lea eax, [ebp - 0x18]
push eax
call fcn.004a231e
add esp, 0x10
test eax, eax
jns 0x45f952
lea eax, [ebp - 0x18]
push eax
call fcn.004a231e
add eax, 0x100
push eax
lea eax, [ebp - 0x18]
push 0x60f2ec
push eax
call fcn.00447b30
add esp, 0x10
cmp byte [ebp - 0x18], 0
mov dword [ebp - 0x1ac], 0xf
mov dword [ebp - 0x1b0], 0
mov byte [ebp - 0x1c0], 0
jne 0x45f977
xor ecx, ecx
jmp 0x45f989
lea ecx, [ebp - 0x18]
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45f980
sub ecx, edx
push ecx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c0]
call fcn.00437370
push 0x60e2a8
lea edx, [ebp - 0x1c0]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1d8]
call fcn.004407a0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.004405f0
cmp dword [ebp - 0x1c4], 0x10
jb 0x45f9dd
push dword [ebp - 0x1d8]
call fcn.0048c32c
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 0x45fa13
push dword [ebp - 0x1c0]
call fcn.0048c32c
add esp, 4
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
movsx eax, byte [eax + 2]
push eax
lea eax, [ebp - 0x18]
push 0x60f2ec
push eax
call fcn.00447b30
lea eax, [ebp - 0x18]
push eax
call fcn.004a231e
add esp, 0x10
test eax, eax
jns 0x45fa5b
lea eax, [ebp - 0x18]
push eax
call fcn.004a231e
add eax, 0x100
push eax
lea eax, [ebp - 0x18]
push 0x60f2ec
push eax
call fcn.00447b30
add esp, 0x10
cmp byte [ebp - 0x18], 0
mov dword [ebp - 0x1ac], 0xf
mov dword [ebp - 0x1b0], 0
mov byte [ebp - 0x1c0], 0
jne 0x45fa80
xor ecx, ecx
jmp 0x45fa8f
lea ecx, [ebp - 0x18]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45fa86
sub ecx, edx
push ecx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c0]
call fcn.00437370
push 0x60e2a8
lea edx, [ebp - 0x1c0]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1d8]
call fcn.004407a0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.004405f0
cmp dword [ebp - 0x1c4], 0x10
jb 0x45fae3
push dword [ebp - 0x1d8]
call fcn.0048c32c
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 0x45fb19
push dword [ebp - 0x1c0]
call fcn.0048c32c
add esp, 4
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
movsx eax, byte [eax + 3]
push eax
lea eax, [ebp - 0x18]
push 0x60f2ec
push eax
call fcn.00447b30
lea eax, [ebp - 0x18]
push eax
call fcn.004a231e
add esp, 0x10
test eax, eax
jns 0x45fb61
lea eax, [ebp - 0x18]
push eax
call fcn.004a231e
add eax, 0x100
push eax
lea eax, [ebp - 0x18]
push 0x60f2ec
push eax
call fcn.00447b30
add esp, 0x10
cmp byte [ebp - 0x18], 0
mov dword [ebp - 0x1ac], 0xf
mov dword [ebp - 0x1b0], 0
mov byte [ebp - 0x1c0], 0
jne 0x45fb86
xor ecx, ecx
jmp 0x45fb99
lea ecx, [ebp - 0x18]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45fb90
sub ecx, edx
push ecx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c0]
call fcn.00437370
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x1c0]
mov byte [ebp - 4], 8
push eax
mov ecx, esi
call fcn.004405f0
cmp dword [ebp - 0x1ac], 0x10
jb 0x45fbd6
push dword [ebp - 0x1c0]
call fcn.0048c32c
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
cmp dword [ebp + 0x20], 0x10
jb 0x45fbed
push dword [ebp + 0xc]
call fcn.0048c32c
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.004a16e5
mov esp, ebp
pop ebp
ret 0x1c