Function at 0x41f9d0
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x90
mov al, byte [0x445264]
push esi
push edi
mov byte [esp + 0x18], al
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x19]
mov esi, dword [esp + 0x9c]
rep stosd dword es:[edi], eax
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, edx
cmp eax, edx
je 0x41fa12
mov edi, dword [eax]
add eax, 4
mov dword [ecx], edi
add ecx, 4
cmp eax, edx
jne 0x41fa04
mov edx, dword [esi + 8]
lea eax, [esp + 0x18]
push 0x100
push eax
mov dword [esp + 0x18], edx
mov dword [esi + 8], ecx
call dword [sym.imp.WS2_32.dll_gethostname]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x41fa4a
pop edi
xor al, al
pop esi
add esp, 0x90
ret
mov eax, dword [eax + 0xc]
cmp dword [eax], 0
je 0x41fbcb
push ebx
push ebp
xor ebp, ebp
mov dword [esp + 0x14], ebp
mov ebx, dword [eax + ebp]
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov dword [esp + 0x1c], ebx
sub edx, eax
mov edi, eax
sar edx, 2
cmp edx, 1
jae 0x41fb27
mov edx, dword [esi + 4]
test edx, edx
je 0x41fa8e
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ecx, 1
ja 0x41fa93
mov ecx, 1
test edx, edx
jne 0x41fa9b
xor eax, eax
jmp 0x41faa0
sub eax, edx
sar eax, 2
add eax, ecx
test eax, eax
mov dword [esp + 0x10], eax
jge 0x41faac
xor eax, eax
shl eax, 2
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esi + 4]
add esp, 4
mov ebx, eax
push ebx
push edi
push ecx
mov ecx, esi
call fcn.00420af0
mov edx, dword [esp + 0x1c]
mov ebp, eax
push edx
push 1
push ebp
mov ecx, esi
call fcn.00420b20
mov eax, dword [esi + 8]
add ebp, 4
push ebp
push eax
push edi
mov ecx, esi
call fcn.00420af0
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push ecx
push edx
mov ecx, esi
call fcn.004209c0
mov eax, dword [esi + 4]
push eax
call fcn.0043a372
mov ecx, dword [esp + 0x14]
add esp, 4
lea edx, [ebx + ecx*4]
mov ecx, esi
mov dword [esi + 0xc], edx
call fcn.00420980
mov ebp, dword [esp + 0x14]
lea eax, [ebx + eax*4 + 4]
mov dword [esi + 8], eax
mov dword [esi + 4], ebx
jmp 0x41fbb1
mov ecx, eax
sub ecx, edi
sar ecx, 2
cmp ecx, 1
jae 0x41fb6f
lea ecx, [edi + 4]
push ecx
push eax
push edi
mov ecx, esi
call fcn.00420af0
mov eax, dword [esi + 8]
mov ecx, 1
mov edx, eax
push ebx
sub edx, edi
sar edx, 2
sub ecx, edx
push ecx
push eax
mov ecx, esi
call fcn.00420b20
mov eax, dword [esi + 8]
cmp edi, eax
je 0x41fbad
mov edx, dword [ebx]
mov dword [edi], edx
add edi, 4
cmp edi, eax
jne 0x41fb62
jmp 0x41fbad
lea ecx, [eax - 4]
push eax
push eax
mov dword [esp + 0x18], ecx
push ecx
mov ecx, esi
call fcn.00420af0
mov ecx, dword [esi + 8]
lea eax, [ecx - 4]
cmp edi, eax
je 0x41fb99
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, edi
mov dword [ecx], edx
jne 0x41fb8a
lea ecx, [edi + 4]
mov eax, edi
cmp edi, ecx
je 0x41fbad
mov edx, dword [ebx]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jne 0x41fba2
add dword [esi + 8], 4
mov eax, dword [esp + 0x18]
add ebp, 4
mov dword [esp + 0x14], ebp
mov eax, dword [eax + 0xc]
cmp dword [eax + ebp], 0
jne 0x41fa5e
pop ebp
pop ebx
pop edi
mov al, 1
pop esi
add esp, 0x90
ret