Function at 0x45be13
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3dc
mov eax, dword [0x4b22d4]
xor eax, esp
mov dword [esp + 0x3d8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [esp + 0x10], eax
xor eax, eax
push 0x18e
mov word [esp + 0x2c], ax
xor ebx, ebx
lea eax, [esp + 0x2e]
push ebx
push eax
call fcn.00401f80
mov edi, 0x103
push edi
lea eax, [esp + 0x1e1]
push ebx
push eax
mov byte [esp + 0x1e8], bl
call fcn.00401f80
push edi
lea eax, [esp + 0x2f5]
push ebx
push eax
mov byte [esp + 0x2fc], bl
call fcn.00401f80
xor eax, eax
mov word [esp + 0x3c], ax
lea edi, [esp + 0x3e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x24
stosw word es:[edi], ax
mov dword [esp + 0x14], ebx
cmp dword [ebp + 0x10], ebx
jge 0x45bea7
mov dword [ebp + 0x10], 0x104
cmp dword [esp + 0x10], ebx
je 0x45c094
cmp esi, ebx
je 0x45c094
cmp dword [ebp + 0x10], ebx
jle 0x45c094
call fcn.00419a8b
push dword [esp + 0x10]
mov ecx, 0x102
lea eax, [esp + 0x1d4]
call fcn.00435b27
lea eax, [esp + 0x2dc]
call fcn.00435ba1
mov edi, 0x494e4c
push edi
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x1d8]
call fcn.004360f6
pop ecx
pop ecx
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x45bf19
push edi
lea eax, [esp + 0x18]
xor ecx, ecx
call fcn.004360f6
pop ecx
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x10]
call fcn.00436c5d
test eax, eax
jne 0x45bf4d
push dword [esp + 0x10]
mov ecx, 0x104
lea eax, [esp + 0x2dc]
call fcn.00435b27
push 0x3a
xor eax, eax
lea edi, [esp + 0x2e0]
call fcn.004357b6
pop ecx
pop ecx
mov edi, 0x5a59f0
mov edx, edi
call fcn.00436c5d
test eax, eax
jne 0x45bf88
lea eax, [esp + 0x1d0]
push 0x5a58e8
push eax
call fcn.00401811
pop ecx
pop ecx
test eax, eax
jne 0x45bf88
push edi
mov ecx, 0x104
lea eax, [esp + 0x1d4]
call fcn.00435b27
pop ecx
lea ecx, [esp + 0x1d0]
mov byte [esi], bl
call fcn.0045b598
test eax, eax
je 0x45bfcc
lea ebx, [esp + 0x1d0]
call fcn.0045ad58
mov ecx, dword [ebp + 0x10]
mov eax, ebx
push eax
mov eax, esi
call fcn.00435b27
lea eax, [esp + 0x2dc]
push eax
mov eax, dword [ebp + 0x10]
call fcn.00436c1c
pop ecx
pop ecx
mov eax, esi
jmp 0x45c096
lea eax, [esp + 0x28]
push eax
push 0x101
mov byte [esi], bl
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x45c094
lea eax, [esp + 0x1d0]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov ecx, eax
cmp ecx, ebx
je 0x45c061
movzx edx, word [ecx + 0xa]
cmp dx, bx
jle 0x45c061
xor eax, eax
mov byte [esp + 0x1bc], bl
lea edi, [esp + 0x1bd]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
movsx eax, dx
push eax
mov eax, dword [ecx + 0xc]
push dword [eax]
lea eax, [esp + 0x24]
push eax
call fcn.00401330
push dword [esp + 0x28]
lea eax, [esp + 0x1cc]
mov byte [esi], bl
call fcn.0045aceb
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x1cc]
push eax
mov eax, esi
call fcn.00435b27
add esp, 0x14
mov ecx, esi
xor edi, edi
call fcn.0045b598
test eax, eax
jne 0x45c064
or edi, 0xffffffff
call dword [sym.imp.WSOCK32.dll_WSACleanup]
cmp edi, ebx
jne 0x45c094
push esi
call fcn.00401a80
pop ecx
test eax, eax
je 0x45c094
lea eax, [esp + 0x2d8]
push eax
mov eax, dword [ebp + 0x10]
call fcn.00436c1c
pop ecx
call fcn.00419a8b
jmp 0x45bfc5
xor eax, eax
mov ecx, dword [esp + 0x3e4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401317
mov esp, ebp
pop ebp
ret