Function at 0xa5c7a0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0xad1f5c
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0xaf97a0]
xor eax, esp
mov dword [esp + 0x188], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0xaf97a0]
xor eax, esp
push eax
lea eax, [esp + 0x1a4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1b4]
mov edi, ecx
mov esi, dword [edi + 0x10]
cmp dword [edi + 0xc], esi
jbe 0xa5c7f1
call fcn.00a7c884
mov ebx, dword [edi + 0xc]
mov eax, dword [edi]
mov dword [esp + 0x38], eax
cmp ebx, dword [edi + 0x10]
jbe 0xa5c804
call fcn.00a7c884
mov ecx, dword [esp + 0x38]
mov eax, dword [edi]
push esi
push ecx
push ebx
push eax
lea edx, [esp + 0x48]
push edx
call fcn.00a5a830
push ebp
lea eax, [esp + 0x80]
push eax
call fcn.00a63b70
xor ebx, ebx
mov dword [esp + 0x1ac], ebx
cmp dword [esp + 0x94], ebx
jne 0xa5c8fd
push 0xff
lea ecx, [esp + 0xa1]
push ebx
push ecx
mov byte [esp + 0xa8], bl
call fcn.00a827a0
add esp, 0xc
push 0x100
lea edx, [esp + 0xa0]
push edx
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, ebx
je 0xa5c8a0
dec dword [0xafcc40]
cmp dword [esp + 0x98], 8
mov dword [esp + 0x7c], vtable.LString.0
jb 0xa5c898
mov eax, dword [esp + 0x84]
push eax
call fcn.00a7ac28
add esp, 4
or eax, 0xffffffff
jmp 0xa5ca3f
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0xa0]
call fcn.00a63520
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x8c]
mov byte [esp + 0x1b8], 1
call fcn.00a11910
mov byte [esp + 0x1ac], bl
mov esi, 1
sub dword [0xafcc40], esi
cmp dword [esp + 0x5c], 8
mov dword [esp + 0x40], vtable.LString.0
jb 0xa5c902
mov eax, dword [esp + 0x48]
push eax
call fcn.00a7ac28
add esp, 4
jmp 0xa5c902
mov esi, 1
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x7c]
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov ebp, 2
push ecx
lea esi, [esp + 0x64]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
call fcn.00a65c00
cmp dword [esp + 0x78], 0x10
mov eax, dword [esp + 0x64]
jae 0xa5c95a
lea eax, [esp + 0x64]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push ecx
push ebx
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0x1ac], ebp
cmp eax, ebx
jne 0xa5c9f1
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0xa5c9f1
mov ebp, dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, dword [esi + 0x18]
mov eax, dword [edx + 4]
push eax
call ebp
cmp eax, ebx
je 0xa5c9db
lea ecx, [esp + 0x40]
push ecx
mov ecx, eax
call fcn.00a63520
lea ebx, [esp + 0x40]
mov byte [esp + 0x1ac], 5
call fcn.00a5a6d0
mov byte [esp + 0x1ac], 2
dec dword [0xafcc40]
cmp dword [esp + 0x5c], 8
mov dword [esp + 0x40], vtable.LString.0
jb 0xa5c9d9
mov edx, dword [esp + 0x48]
push edx
call fcn.00a7ac28
add esp, 4
xor ebx, ebx
mov esi, dword [esi + 0x1c]
cmp esi, ebx
jne 0xa5c985
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0xa5c9f1
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0x78], 0x10
jb 0xa5ca05
mov eax, dword [esp + 0x64]
push eax
call fcn.00a7ac28
add esp, 4
dec dword [0xafcc40]
cmp dword [esp + 0x98], 8
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
mov dword [esp + 0x7c], vtable.LString.0
jb 0xa5ca3d
mov ecx, dword [esp + 0x84]
push ecx
call fcn.00a7ac28
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x1a4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x188]
xor ecx, esp
call fcn.00a7a967
add esp, 0x19c
ret