Function at 0x406498
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x560
mov ax, word [0x4110f8]
push esi
push edi
push 7
mov word [ebp - 0x60], ax
pop ecx
xor eax, eax
lea edi, [ebp - 0x5e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x4110f4]
lea edi, [ebp - 0x18]
mov dword [ebp - 0x1c], eax
xor eax, eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor edi, edi
mov dword [ebp - 0x20], 0x20
cmp dword [0x491ef8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
jne 0x4066ce
cmp dword [0x491f10], edi
je 0x4066ce
mov esi, dword [ebp + 8]
cmp esi, edi
je 0x40651c
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x80]
push eax
lea eax, [esi + 2]
push eax
call fcn.0040c590
pop ecx
test eax, eax
pop ecx
je 0x4066ce
lea eax, [ebp - 0xa8]
or dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x150]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x150]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x80]
push ebx
push eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x3c], edi
push eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x34], 0x7f
call fcn.004073d0
pop ecx
lea eax, [ebp - 0xe8]
pop ecx
push 0x22
push eax
push 0xffffffffffffffff
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 1
push edi
call esi
mov dword [ebp - 4], 2
mov ebx, 0x40e044
mov al, byte [ebp - 4]
push 0x14
add al, 0x41
mov byte [ebp - 0x1c], al
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x1c]
push 0xffffffffffffffff
push eax
push 1
push edi
call esi
mov al, byte [ebp - 0x1c]
push 0x34
mov byte [ebp - 0x60], al
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x60]
push 0xffffffffffffffff
push eax
push 1
push edi
call esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xe8]
push 2
push eax
call dword [0x491f10]
cmp dword [ebp + 0xc], edi
mov dword [ebp - 0x10], eax
je 0x4066c0
cmp eax, edi
jne 0x40663c
cmp dword [ebp - 8], edi
jne 0x40663c
push 1
push str.Q_Q
call fcn.00407baf
push 2
cdq
pop ecx
idiv ecx
lea eax, [ebp - 0x45c]
push edx
push eax
call fcn.00404156
lea eax, [ebp - 0x358]
push ebx
push eax
call fcn.004073c0
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x358]
push eax
call fcn.004073d0
push 1
lea eax, [ebp - 0x45c]
push edi
push eax
lea eax, [ebp - 0x358]
push edi
push eax
push dword [ebp + 8]
call fcn.0040280f
add esp, 0x38
mov dword [ebp - 8], eax
cmp dword [ebp - 0x10], edi
jne 0x4066c0
push 1
push str._rA_r
push edi
call fcn.004046ab
pop ecx
and eax, 1
push eax
lea eax, [ebp - 0x560]
push eax
call fcn.00404156
push dword [ebp + 8]
lea eax, [ebp - 0x254]
push eax
call fcn.004073c0
lea eax, [ebp - 0x254]
push ebx
push eax
call fcn.004073d0
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.004073d0
lea eax, [ebp - 0x254]
push ebx
push eax
call fcn.004073d0
lea eax, [ebp - 0x560]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.004073d0
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x254]
push 0xffffffffffffffff
push eax
call fcn.00406ab2
add esp, 0x48
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jl 0x40657e
pop ebx
pop edi
pop esi
leave
ret