Function at 0x41a780
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452331
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x46b664]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x70], eax
xor eax, eax
mov dword [ebp - 0x6c], eax
push 0x10
lea esi, [ebp - 0x64]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
call fcn.0041ba10
mov dword [ebp - 4], 1
mov edi, dword [ebp - 0x60]
mov ebx, dword [ebp - 0x64]
mov esi, edi
lea ecx, [ebp - 0x54]
sub esi, ebx
push ecx
sar esi, 1
push ebx
mov dword [ebp - 0x54], esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x41a8c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
cmp eax, 0x6f
jne 0x41a943
mov ecx, dword [ebp - 0x54]
add ecx, 2
mov dword [ebp - 0x68], ecx
cmp esi, ecx
jbe 0x41a82d
lea esi, [ebx + ecx*2]
cmp esi, edi
je 0x41a8aa
push 0
push edi
push esi
call fcn.00432040
add esp, 0xc
mov dword [ebp - 0x60], esi
jmp 0x41a8a7
jae 0x41a8aa
mov eax, ecx
sub eax, esi
mov edx, 0x7fffffff
sub edx, eax
cmp edx, esi
jb 0x41a939
add esi, eax
mov eax, dword [ebp - 0x5c]
sub eax, ebx
sar eax, 1
cmp esi, eax
jbe 0x41a87b
mov ecx, eax
shr ecx, 1
mov edx, 0x7fffffff
sub edx, ecx
cmp edx, eax
jae 0x41a862
xor eax, eax
jmp 0x41a864
add eax, ecx
cmp eax, esi
cmovb eax, esi
push eax
lea ecx, [ebp - 0x64]
call fcn.0041bb00
mov ebx, dword [ebp - 0x64]
mov edi, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x68]
mov eax, edi
sub eax, ebx
sar eax, 1
mov edx, ecx
sub edx, eax
je 0x41a8a1
xor eax, eax
movzx esi, ax
mov eax, esi
shl esi, 0x10
or eax, esi
mov ecx, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x60]
lea ecx, [edi + edx*2]
mov dword [ebp - 0x60], ecx
mov edi, dword [ebp - 0x60]
mov esi, edi
lea edx, [ebp - 0x54]
sub esi, ebx
push edx
sar esi, 1
push ebx
mov dword [ebp - 0x54], esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x41a7f2
mov esi, dword [ebp - 0x70]
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov eax, ebx
mov word [esi], dx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41a8e1
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
call fcn.0040eba0
mov dword [ebp - 0x6c], 1
mov byte [ebp - 4], 0
xor edi, edi
cmp ebx, edi
je 0x41a912
push ebx
call fcn.00431dda
add esp, 4
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00431de5
mov esp, ebp
pop ebp
ret
push str.vector_T__too_long
call fcn.0042fac0
xor eax, eax
mov word [ebp - 0x50], ax
mov edi, 7
xor ebx, ebx
push 0x21
mov eax, str.WinAPI::getComputerName___failed.
lea esi, [ebp - 0x50]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], ebx
call fcn.0040eba0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x68]
push ebx
mov eax, esi
mov dword [ebp - 0x34], ecx
xor edx, edx
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], dx
call fcn.00401a90
mov byte [ebp - 4], 2
push 0x462084
lea ecx, [ebp - 0x34]
push ecx
call fcn.00436362
int3