Function at 0x403150
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x426bc1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov dword [esp + 0x1c], ebp
call fcn.0040d540
mov al, byte [esp + 0x13]
mov dl, byte [esp + 0x13]
lea ecx, [ebp + 0x1ec]
mov dword [esp + 0x38], 0
mov byte [ecx], al
mov byte [ecx + 1], dl
mov byte [ecx + 8], 0
call fcn.0040b680
mov al, byte [esp + 0x13]
mov dl, byte [esp + 0x13]
lea ecx, [ebp + 0x1fc]
mov byte [esp + 0x38], 1
mov byte [ecx], al
mov byte [ecx + 1], dl
mov byte [ecx + 8], 0
call fcn.0040b9c0
mov al, byte [esp + 0x13]
mov dl, byte [esp + 0x13]
lea ecx, [ebp + 0x20c]
mov byte [esp + 0x38], 2
mov byte [ecx], al
mov byte [ecx + 1], dl
mov byte [ecx + 8], 0
call fcn.0040bd10
mov al, byte [esp + 0x13]
lea ebx, [ebp + 0x21c]
push 0
mov ecx, ebx
mov byte [esp + 0x3c], 3
mov byte [ebx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x20]
push ecx
push edx
mov byte [esp + 0x40], 4
mov dword [ebp], 0x429344
mov dword [ebp + 0x154], 0x429338
mov dword [esp + 0x1c], 0xf
call dword [sym.imp.KERNEL32.DLL_GetComputerNameA]
test eax, eax
je 0x403279
mov eax, dword [esp + 0x14]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
push 1
mov byte [esp + eax + 0x24], 0
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, ebx
push esi
mov dword [esp + 0x20], esi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x403279
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], eax
mov byte [ecx + eax], 0
mov edi, 0x42e384
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp + 0x22c], 0x1f90
mov dword [ebp + 0x230], 0
lea ebx, [ebp + 0x190]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov esi, ecx
mov ecx, ebx
push esi
mov dword [esp + 0x20], esi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x4032db
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
mov esi, 0x42e384
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], eax
mov byte [ecx + eax], 0
mov edi, 0x42e328
or ecx, 0xffffffff
xor eax, eax
lea ebx, [ebp + 0x180]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, ebx
mov dword [esp + 0x18], esi
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::max_size_void_const]
cmp eax, esi
jae 0x403308
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x403341
mov al, byte [ecx - 1]
test al, al
je 0x403341
cmp al, 0xff
je 0x403341
test esi, esi
jne 0x40337a
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
test esi, esi
jne 0x403364
push 1
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x403370
cmp eax, esi
jae 0x403383
push 1
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Copy_unsigned_int_]
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
mov esi, 0x42e328
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x18]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov ecx, dword [esp + 0x30]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret