Function at 0x405950
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fb03
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x442004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x9c], ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x20]
push esi
mov dword [ebp - 0xa0], eax
mov dword [0x4433dc], 0x4011d0
mov dword [0x4434f0], 0x401200
mov dword [0x4433c4], 0x4011d0
call fcn.00405790
mov bl, al
test bl, bl
je 0x405bc1
mov ecx, dword [esi + 4]
xor eax, eax
sub ecx, dword [esi]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov eax, 0x92492493
imul ecx
add edx, ecx
lea ecx, [ebp - 0x60]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
call fcn.00407920
mov dword [ebp - 4], 0
xor edi, edi
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x94], eax
mov ecx, dword [esi + 4]
mov eax, 0x92492493
sub ecx, dword [esi]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x405a80
mov al, byte [esi + 0xc]
inc edi
push edi
mov byte [ebp - 0x54], al
push str.Generating_requests_for_timespan__u._n
push dword [ebp - 0x54]
call fcn.004027b0
mov eax, dword [esi]
add esp, 0xc
add eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x9c]
push dword [ebp - 0xa4]
push dword [ebp - 0x94]
push eax
push esi
call fcn.00405bf0
add dword [ebp - 0x94], 0x198
mov bl, al
add dword [ebp - 0x98], 0x38
test bl, bl
jne 0x405a14
mov dword [ebp - 0x64], 0xf
mov dword [ebp - 0x68], 0
mov byte [ebp - 0x78], 0
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x54], 0x40
push eax
push 5
call dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
test eax, eax
je 0x405ad7
cmp byte [ebp - 0x50], 0
jne 0x405abb
xor ecx, ecx
jmp 0x405aca
lea ecx, [ebp - 0x50]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405ac1
sub ecx, edx
push ecx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x78]
call fcn.004091a0
sub esp, 0xc
mov byte [ebp - 4], 2
lea eax, [ebp - 0x60]
mov ecx, esp
push eax
call fcn.00407830
mov edi, dword [ebp - 0xa8]
lea ecx, [ebp - 0x78]
push ecx
push esi
lea ecx, [ebp - 0x90]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax]
mov byte [ebp - 4], 3
cmp dword [ebp - 0x7c], 0x10
mov eax, dword [ebp - 0x90]
jae 0x405b17
lea eax, [ebp - 0x90]
push eax
push 0x4382a0
call fcn.00402730
mov eax, dword [edi]
add esp, 8
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebp - 0xa0]
lea eax, [eax + eax*4]
add eax, eax
mov dword [ecx], eax
mov eax, dword [ebp - 0x7c]
cmp eax, 0x10
jb 0x405b4e
inc eax
push eax
push dword [ebp - 0x90]
call fcn.004018c0
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x7c], 0xf
mov dword [ebp - 0x80], 0
mov byte [ebp - 0x90], 0
cmp eax, 0x10
jb 0x405b75
inc eax
push eax
push dword [ebp - 0x78]
call fcn.004018c0
mov esi, dword [ebp - 0x60]
mov dword [ebp - 0x64], 0xf
mov dword [ebp - 0x68], 0
mov byte [ebp - 0x78], 0
test esi, esi
je 0x405bc1
push dword [ebp - 0xa0]
mov edx, dword [ebp - 0x5c]
push ecx
mov ecx, esi
call fcn.0040af30
mov ecx, dword [ebp - 0x58]
mov eax, 0xa0a0a0a1
sub ecx, esi
add esp, 8
imul ecx
add edx, ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.00409500
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00419ed2
mov esp, ebp
pop ebp
ret 0x1c