Function at 0x45ae60
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x49e128]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x2c]
xor ebx, ebx
cmp ecx, ebx
push edi
mov edi, dword [ebp + 8]
je 0x45ae94
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
push edx
push edi
call eax
mov ebx, eax
jmp 0x45b1c0
mov eax, dword [esi + 0xc]
cmp eax, 2
jne 0x45af55
call dword [0x49ded0]
mov dword [ebp - 0x18], eax
xor eax, eax
cmp edi, ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
jne 0x45aebf
xor edi, edi
jmp 0x45aeee
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x45aed4
xor edi, edi
jmp 0x45aeee
lea ebx, [eax + eax]
mov eax, ebx
call fcn.00461b20
mov ecx, dword [ebp - 0x18]
mov eax, esp
push ecx
push ebx
push edi
push eax
call fcn.004040e0
mov edi, eax
push edi
mov word [ebp - 0x14], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x45af25
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x45af1a
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
jmp 0x45af25
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi + 4]
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
call fcn.00458290
push eax
call dword [sym.imp.WS2_32.dll_connect]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
jmp 0x45b1c0
cmp eax, 0x17
je 0x45af62
cmp eax, ebx
jne 0x45b1bd
cmp dword [0x49f988], ebx
jne 0x45af7c
push 0x273b
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
jmp 0x45b1f0
call dword [0x49ded0]
mov ecx, dword [esi + 0x1c]
push ecx
mov dword [ebp - 0x1c], eax
call dword [0x49f98c]
mov edx, dword [esi + 0xc]
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push eax
push 0x489e84
lea ecx, [ebp - 0x10]
push 9
push ecx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x1c], ebx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x3c], ebx
call fcn.00464fe2
add esp, 0x10
cmp edi, ebx
jne 0x45afde
xor eax, eax
jmp 0x45b00b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x45aff3
xor eax, eax
jmp 0x45b00b
lea ebx, [eax + eax]
mov eax, ebx
call fcn.00461b20
mov edx, dword [ebp - 0x1c]
mov eax, esp
push edx
push ebx
push edi
push eax
call fcn.004040e0
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [0x49f988]
test eax, eax
jne 0x45af75
mov edi, dword [ebp - 0x18]
test edi, edi
mov ebx, dword [ebp - 0x18]
je 0x45b17f
cmp dword [esi + 0xc], 0
jne 0x45b04e
mov edx, dword [edi + 0xc]
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_socket]
jmp 0x45b056
mov ecx, dword [esi + 4]
call fcn.00458290
cmp eax, 0xffffffff
jne 0x45b062
xor ebx, ebx
jmp 0x45b171
cmp dword [esi + 0xc], 0
jne 0x45b130
mov edx, dword [esi + 4]
mov dword [edx + 4], eax
mov ecx, dword [esi + 4]
push eax
call fcn.00458680
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 4]
push eax
call fcn.00458770
test eax, eax
mov ecx, dword [esi + 4]
jne 0x45b09c
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
xor ebx, ebx
jmp 0x45b171
cmp dword [ecx + 0x38], 0
je 0x45b0d6
mov edx, dword [ecx + 8]
push 0x3f
add edx, 0x403
push edx
call fcn.004582a0
push eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
test eax, eax
je 0x45b0d6
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
xor ebx, ebx
jmp 0x45b171
mov ecx, dword [esi + 4]
cmp dword [ecx + 0x50], 0
je 0x45b0f6
mov edx, dword [ecx + 8]
push 0
push edx
push 0x402
call fcn.004582a0
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [esi + 0xc], 0
jne 0x45b130
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
mov dword [esi + 0xc], eax
mov dword [ecx + 0xc], eax
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 4]
push edx
push eax
call fcn.004583c0
test eax, eax
jne 0x45b130
mov ecx, dword [esi + 4]
mov dword [esi + 0xc], eax
mov dword [ecx + 0xc], eax
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
jmp 0x45b171
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x18]
push ecx
mov ecx, dword [esi + 4]
push edx
call fcn.00458290
push eax
call dword [sym.imp.WS2_32.dll_connect]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
test ebx, ebx
jne 0x45b197
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x45b197
cmp dword [ebp - 0x38], ebx
jne 0x45b171
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
mov ecx, esi
mov dword [esi + 0xc], ebx
call edx
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x45b034
mov edi, dword [ebp - 0x18]
push edi
call dword [0x49f98c]
mov ecx, dword [esi + 4]
call fcn.00458290
cmp eax, 0xffffffff
jne 0x45b1c0
xor ebx, ebx
jmp 0x45b1c4
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 4]
mov dword [ecx + 0xc], edx
mov edi, dword [ebp - 0x18]
mov eax, dword [edi + 0x1c]
test eax, eax
mov ebx, 1
je 0x45b17f
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], eax
jmp 0x45b186
mov ebx, dword [ebp - 0x18]
test ebx, ebx
jne 0x45b1d1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x45b1ee
mov eax, dword [esi + 8]
cmp eax, 2
mov dword [esi + 8], 2
je 0x45b1ee
push 0
push eax
push 2
push 0
mov ecx, esi
call fcn.0045a660
mov eax, ebx
lea esp, [ebp - 0x48]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460e4b
mov esp, ebp
pop ebp
ret 8