Function at 0x69c650
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x82aea4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edi
call fcn.0069c590
test al, al
je 0x69c69c
mov ecx, dword [ebp - 0x18]
push edi
push esi
push ecx
push ebx
call dword [0x85ff04]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x69c6b9
xor eax, 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
jmp 0x69c6ee
mov ecx, 8
lea edi, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x38]
cmp eax, 2
je 0x69c6e5
test eax, eax
je 0x69c6e5
pop edi
pop esi
mov eax, 0x273f
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x3c]
jne 0x69c6f5
mov dword [ebp - 0x34], 1
mov esi, dword [ebp - 0x18]
test ebx, ebx
jne 0x69c716
test esi, esi
jne 0x69c716
pop edi
pop esi
mov eax, 0x2af9
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov edx, 2
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov word [ebp - 0x14], dx
test ebx, ebx
je 0x69c7e2
cmp byte [ebx], cl
jne 0x69c73f
push ecx
jmp 0x69c7ef
test al, 4
je 0x69c76e
lea eax, [ebp - 0x10]
push eax
push ebx
call sym.postgres.exe_inet_aton
add esp, 8
test eax, eax
jne 0x69c7f8
pop edi
pop esi
mov eax, 0x2afb
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
jne 0x69c7c2
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
sub eax, 0x2af9
je 0x69c700
dec eax
je 0x69c7ac
sub eax, 2
je 0x69c700
pop edi
pop esi
mov eax, 0x2afb
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x2afa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
cmp word [eax + 8], 2
jne 0x69c758
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [ebp - 0x10]
push ecx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
jmp 0x69c7f8
test al, 1
je 0x69c7ea
push 0
jmp 0x69c7ef
push 0x7f000001
call dword [sym.imp.WSOCK32.dll_htonl]
mov dword [ebp - 0x10], eax
xor ebx, ebx
cmp esi, ebx
je 0x69c813
push esi
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
push eax
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0x12], ax
mov edi, dword [sym.imp.MSVCR100.dll_malloc]
push 0x20
call edi
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x69c83b
push 0x10
call edi
add esp, 4
cmp eax, ebx
jne 0x69c851
push esi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop edi
pop esi
mov eax, 8
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0xc]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x34]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x30]
mov dword [esi + 8], edx
mov edx, dword [ebp - 0x1c]
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp - 4]
mov dword [esi], ebx
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 4], 2
mov dword [esi + 0x10], 0x10
pop edi
mov dword [edx], esi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret