Function at 0x41f3c8
Capabilities:
Get hostname
Resolve dns

Disassembly:
test dword [0x4b63ec], 0xffffff80
jne 0x41f3f0
test dword [0x4b63ec], 0xffffffff
jne 0x41f564
call fcn.00490ee4
jmp fcn.0041f3c8
push edi
push ebp
sub esp, 0x118
mov ebp, edx
mov edi, eax
lea ecx, [esp]
push 0x100
push ecx
call dword [sym.imp.WSOCK32.dll_gethostname]
test eax, eax
je 0x41f424
push ebp
push 0x4bac60
push edi
call fcn.004869b0
add esp, 0x124
pop ebp
pop edi
ret
lea ecx, [esp]
push ecx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov edx, eax
test edx, edx
je 0x41f54f
mov byte [edi], 0
mov ecx, dword [edx + 0xc]
cmp dword [ecx], 0
je 0x41f546
mov dword [esp + 0x114], ebp
xor eax, eax
mov ebp, eax
mov dword [esp + 0x100], ebx
mov ebx, edx
mov dword [esp + 0x104], esi
movsx esi, word [ebx + 0xa]
test esi, esi
jle 0x41f4d9
mov dword [esp + 0x108], ebp
xor esi, esi
lea eax, [ebp + ebp]
mov ebp, eax
jmp 0x41f47e
mov ecx, dword [ebx + 0xc]
lea edx, [esp + 0x10c]
mov ecx, dword [ecx + ebp*2]
movzx ecx, byte [esi + ecx]
push ecx
push 0x4bac90
push edx
call fcn.00486227
add esp, 0xc
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x41f4ad
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x41f4a5
lea ecx, [esp + 0x10c]
neg eax
add eax, dword [esp + 0x114]
dec eax
push eax
push ecx
push edi
call fcn.00486e40
add esp, 0xc
inc esi
movsx ecx, word [ebx + 0xa]
cmp esi, ecx
jl 0x41f47b
mov ebp, dword [esp + 0x108]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x41f4eb
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x41f4e3
inc ebp
lea esi, [ebp + ebp]
mov byte [eax + edi - 1], 0
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + ebp*4]
test eax, eax
je 0x41f530
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x41f511
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x41f509
neg eax
add eax, dword [esp + 0x114]
dec eax
push eax
push 0x4bac94
push edi
call fcn.00486e40
add esp, 0xc
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + esi*2]
test eax, eax
jne 0x41f462
mov ebx, dword [esp + 0x100]
mov esi, dword [esp + 0x104]
add esp, 0x118
pop ebp
pop edi
ret
push ebp
push 0x4bac78
push edi
call fcn.004869b0
add esp, 0x124
pop ebp
pop edi
ret
push edi
push ebp
sub esp, 0x118
mov ebp, edx
mov edi, eax
lea ecx, [esp]
push 0x100
push ecx
call dword [sym.imp.WSOCK32.dll_gethostname]
test eax, eax
je 0x41f598
push ebp
push 0x4bac60
push edi
call fcn.004869b0
add esp, 0x124
pop ebp
pop edi
ret
lea ecx, [esp]
push ecx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov edx, eax
test edx, edx
je 0x41f6c3
mov byte [edi], 0
mov ecx, dword [edx + 0xc]
cmp dword [ecx], 0
je 0x41f6ba
xor eax, eax
mov dword [esp + 0x114], ebp
mov dword [esp + 0x100], ebx
mov dword [esp + 0x104], esi
mov ebp, eax
mov ebx, edx
movsx esi, word [ebx + 0xa]
test esi, esi
jle 0x41f64d
xor esi, esi
lea eax, [ebp + ebp]
mov dword [esp + 0x108], ebp
mov ebp, eax
jmp 0x41f5f2
mov ecx, dword [ebx + 0xc]
lea edx, [esp + 0x10c]
mov ecx, dword [ecx + ebp*2]
movzx ecx, byte [esi + ecx]
push ecx
push 0x4bac90
push edx
call fcn.00486227
add esp, 0xc
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x41f621
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x41f619
lea ecx, [esp + 0x10c]
neg eax
add eax, dword [esp + 0x114]
dec eax
push eax
push ecx
push edi
call fcn.00486e40
add esp, 0xc
inc esi
movsx ecx, word [ebx + 0xa]
cmp esi, ecx
jl 0x41f5ef
mov ebp, dword [esp + 0x108]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x41f65f
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x41f657
mov byte [eax + edi - 1], 0
mov ecx, dword [ebx + 0xc]
inc ebp
lea esi, [ebp + ebp]
mov eax, dword [ecx + ebp*4]
test eax, eax
je 0x41f6a4
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x41f685
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x41f67d
neg eax
add eax, dword [esp + 0x114]
dec eax
push eax
push 0x4bac94
push edi
call fcn.00486e40
add esp, 0xc
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + esi*2]
test eax, eax
jne 0x41f5d6
mov ebx, dword [esp + 0x100]
mov esi, dword [esp + 0x104]
add esp, 0x118
pop ebp
pop edi
ret
push ebp
push 0x4bac78
push edi
call fcn.004869b0
add esp, 0x124
pop ebp
pop edi
ret