Function at 0x40b600
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x42f4c8]
sub esp, 0x10
push esi
xor esi, esi
cmp eax, esi
jne 0x40b84b
push fcn.0040b600
call fcn.00403be0
add esp, 4
cmp dword [0x42f4c8], esi
jne 0x40b83c
push esi
call fcn.00404ac0
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], esi
cmp eax, esi
je 0x40b651
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b645
sub eax, edx
mov dword [ebp - 8], eax
push ebx
push edi
mov dword [ebp - 4], esi
call fcn.0040a550
sub eax, esi
je 0x40b6dc
dec eax
je 0x40b6a6
dec eax
jne 0x40b741
lea esp, [esp]
push 0x4e
call fcn.00414f9a
mov edi, eax
add esp, 4
cmp edi, esi
je 0x40b670
push 0x19
mov dword [ebp - 4], edi
call fcn.004051a0
mov eax, dword [0x42f218]
mov eax, dword [eax + 0x64]
add esp, 4
sub edi, eax
mov cl, byte [eax]
mov byte [edi + eax], cl
inc eax
test cl, cl
jne 0x40b697
jmp 0x40b741
push 0x4d
call fcn.00414f9a
mov edi, eax
add esp, 4
cmp edi, esi
je 0x40b6a6
push 0x18
mov dword [ebp - 4], edi
call fcn.004051a0
mov ecx, dword [0x42f218]
mov eax, dword [ecx + 0x60]
add esp, 4
sub edi, eax
mov edi, edi
mov cl, byte [eax]
mov byte [edi + eax], cl
inc eax
test cl, cl
jne 0x40b6d0
jmp 0x40b741
push 0xc
call fcn.004051a0
mov edx, dword [0x42f218]
mov eax, dword [edx + 0x30]
push eax
call fcn.00415e1b
add esp, 8
mov esi, eax
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b700
sub eax, edx
lea ebx, [eax + 0xc]
lea esp, [esp]
push ebx
call fcn.00414f9a
mov edi, eax
add esp, 4
test edi, edi
je 0x40b710
push 0x17
mov dword [ebp - 4], edi
call fcn.004051a0
mov eax, dword [0x42f218]
mov ecx, dword [eax + 0x5c]
push esi
push ecx
push str._s__s
push edi
call fcn.0041512c
add esp, 0x14
mov eax, dword [ebp - 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b747
sub eax, edx
mov edx, dword [ebp - 8]
lea edi, [eax + edx + 0x17]
push edi
call fcn.00414f9a
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40b757
lea eax, [ebp - 0x10]
push eax
push ebx
mov dword [ebp - 0x10], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x40b77e
mov byte [ebx], al
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x40b7d2
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40b788
mov dx, word [0x42a734]
mov eax, ecx
mov word [edi], dx
mov esi, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b7a0
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40b7b0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00414f60
add esp, 4
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40b7d5
mov cx, word [0x42a734]
mov eax, dword [ebp - 4]
mov word [edi], cx
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b7f0
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40b800
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call fcn.00403e00
push ebx
mov dword [0x42f4c8], eax
call fcn.00414f60
mov eax, dword [ebp - 4]
add esp, 8
pop edi
pop ebx
test eax, eax
je 0x40b83c
push eax
call fcn.00414f60
add esp, 4
mov esi, fcn.0040b600
call fcn.00403ce0
mov eax, dword [0x42f4c8]
pop esi
mov esp, ebp
pop ebp
ret