Function at 0x411508
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe78
push ebx
push esi
push edi
xor edi, edi
lea edx, [ebp - 0xe74]
mov dword [ebp - 0x14], 0x20
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], edi
call fcn.0040efcc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xb40], eax
lea eax, [ebp - 0xe74]
push eax
call fcn.0040f365
lea eax, [ebp - 0xe74]
call fcn.0040f13f
mov eax, dword [ebp - 0x10]
cmp eax, edi
mov dword [ebp - 8], edi
jle 0x41174a
mov dword [ebp - 0xc], edi
cmp dword [ebp - 8], edi
jl 0x411577
cmp dword [ebp - 8], eax
jge 0x411577
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
lea esi, [ecx + eax]
jmp 0x411579
xor esi, esi
lea ebx, [esi + 0x200]
cmp word [ebx], di
je 0x411734
lea eax, [ebp - 0xb3c]
call fcn.00401d75
mov ax, word [esi + 0xcc4]
mov word [ebp - 0xb3a], ax
mov ax, word [esi + 0xcc2]
mov word [ebp - 0xb3c], ax
lea eax, [esi + 0x400]
push eax
mov eax, 0x3ff
lea edi, [ebp - 0x938]
call fcn.00406567
pop ecx
push esi
mov eax, 0xff
lea edi, [ebp - 0xb38]
call fcn.00406567
pop ecx
push ebx
call sub.msvcrt.dll_wcslen
mov word [ebp - 0x138], ax
movzx eax, ax
test eax, eax
pop ecx
jle 0x411647
mov ecx, ebx
mov edx, eax
movzx eax, word [ecx]
lea edi, [eax - 0x30]
cmp di, 9
ja 0x411607
inc word [ebp - 0x136]
jmp 0x411642
lea edi, [eax - 0x61]
cmp di, 0x19
ja 0x411619
inc word [ebp - 0x134]
jmp 0x411642
lea edi, [eax - 0x41]
cmp di, 0x19
ja 0x41162b
inc word [ebp - 0x132]
jmp 0x411642
dec eax
cmp ax, 0xfe
ja 0x41163b
inc word [ebp - 0x130]
jmp 0x411642
inc word [ebp - 0x12e]
inc ecx
inc ecx
dec edx
jne 0x4115f2
push ebx
lea edi, [ebp - 0x128]
call fcn.004112f3
pop ecx
push esi
push ebx
mov word [ebp - 0x12c], ax
call fcn.00406400
test eax, eax
pop ecx
pop ecx
jl 0x411671
mov word [ebp - 0x12a], 1
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x126]
push eax
mov dword [ebp - 0x24], 0x1f
call dword [sym.imp.KERNEL32.DLL_GetComputerNameW]
add esi, 0xc00
push esi
push 0x60
pop esi
mov eax, esi
lea edi, [ebp - 0xe6]
call fcn.00406567
cmp word [ebp - 0xe6], 0
pop ecx
jne 0x4116e1
push 0x446768
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4116e1
push str.GetUserNameExW
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x4116da
lea ecx, [ebp - 0x20]
push ecx
mov ecx, edi
push ecx
push 2
call eax
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov ebx, dword [ebp + 8]
mov esi, dword [ebx + 0xc]
test esi, esi
jl 0x411732
cmp esi, 0xffffffff
mov eax, dword [ebx + 8]
jne 0x4116fc
push dword [ebx]
call sub.msvcrt.dll_free
jmp 0x41170f
push eax
push 0xb18
lea eax, [ebx + 4]
mov edx, esi
mov edi, ebx
call fcn.00406595
pop ecx
lea eax, [esi + 1]
cmp dword [ebx + 0xc], eax
pop ecx
jge 0x41171b
mov dword [ebx + 0xc], eax
mov edi, esi
imul edi, edi, 0xb18
add edi, dword [ebx]
mov ecx, 0x2c6
lea esi, [ebp - 0xb3c]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
inc dword [ebp - 8]
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], 0xcc6
cmp dword [ebp - 8], eax
jl 0x411562
cmp dword [ebp - 0x1c], edi
je 0x411758
push dword [ebp - 0x1c]
call sub.msvcrt.dll_free
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4