Function at 0x4016c0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4ec
mov eax, dword [0x407004]
xor eax, esp
mov dword [esp + 0x4e8], eax
push ebx
push esi
push edi
push 0x4034c0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.CheckLicence
call fcn.00403270
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov esi, dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv_s]
lea eax, [esp + 0x24]
push str.APPDATA
push 0
push 0
push eax
call esi
push dword [esp + 0x34]
call fcn.00403604
add esp, 0x14
mov edi, eax
lea eax, [esp + 0x24]
push str.APPDATA
push dword [esp + 0x28]
push edi
push eax
call esi
mov ecx, dword [esp + 0x34]
add ecx, 0x1c
push ecx
mov dword [esp + 0x38], ecx
call fcn.00403604
add esp, 0x14
mov ebx, eax
push edi
push str._s3CXPhone_for_Windowsid.txt
push dword [esp + 0x2c]
push ebx
call fcn.004010e0
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0x14
push 0xb0
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov edi, eax
lea eax, [esp + 0x70]
mov dword [esp + 0x10], edi
push eax
call dword [sym.imp.ADVAPI32.dll_GetCurrentHwProfileA]
lea eax, [esp + 0x74]
push eax
push 0x80
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
mov dword [edi + 0xa8], 0x80
lea esi, [edi + 0xa8]
push 0x80
call fcn.00403604
add esp, 4
mov dword [edi + 0x80], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
push esi
push eax
push 3
call edi
inc dword [esi]
mov esi, dword [esp + 0x10]
add esi, 0xac
push 0x80
mov dword [esi], 0x80
call fcn.00403604
mov ecx, dword [esp + 0x14]
add esp, 4
push esi
push eax
push 0
mov dword [ecx + 0x84], eax
call edi
inc dword [esi]
lea eax, [esp + 0x4c]
push 0x407400
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x54]
push eax
push str._F__T
push 2
lea eax, [esi + 0x93]
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_strftime]
push str.0000_00_00
lea eax, [esi + 0x88]
push 0xb
push eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0x24
lea eax, [esp + 0x20]
push 0x40552c
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov edi, dword [esp + 0x2c]
add esp, 0xc
test edi, edi
jne 0x401873
mov edx, esi
mov ecx, ebx
call fcn.00401ca0
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push ebx
call eax
add esp, 4
jmp 0x401c70
push 0x400
lea eax, [esp + 0xf4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
lea eax, [esp + 0xfc]
add esp, 0xc
push edi
push 0x400
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0xf0]
call fcn.00402fc0
push dword [esp + 0x20]
mov edi, eax
lea eax, [esp + 0xf4]
push 0x400
push eax
call esi
add esp, 0xc
lea eax, [esp + 0xf0]
nop
mov cl, byte [eax]
cmp cl, byte [edi]
jne 0x4018f0
test cl, cl
je 0x4018ec
mov cl, byte [eax + 1]
cmp cl, byte [edi + 1]
jne 0x4018f0
add eax, 2
add edi, 2
test cl, cl
jne 0x4018d0
xor eax, eax
jmp 0x4018f5
sbb eax, eax
or eax, 1
test eax, eax
je 0x40191d
mov edx, dword [esp + 0x10]
mov ecx, ebx
call fcn.00401ca0
cmp byte [0x4075ad], 0
jne 0x401bfd
mov byte [0x4075ad], 1
jmp 0x401c70
push 0
push 0
push dword [esp + 0x28]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
lea eax, [esp + 0xf0]
push 0x80
push eax
push 0x405530
push dword [esp + 0x2c]
call fcn.00401080
push 0x80
lea eax, [esp + 0x104]
push eax
push 0x405530
push dword [esp + 0x3c]
call fcn.00401080
push 0x80
lea eax, [esp + 0x114]
push eax
push 0x405530
push dword [esp + 0x4c]
call fcn.00401080
push 0x80
lea eax, [esp + 0x124]
push eax
push 0x405530
push dword [esp + 0x5c]
call fcn.00401080
add esp, 0x40
lea eax, [esp + 0x4c]
push 0x407400
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
push 5
call fcn.00403604
movzx ecx, byte [esp + 0xfc]
add esp, 0xc
mov edi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov byte [eax], cl
movzx ecx, byte [esp + 0xf1]
mov byte [eax + 1], cl
movzx ecx, byte [esp + 0xf2]
mov byte [eax + 2], cl
movzx ecx, byte [esp + 0xf3]
mov byte [eax + 3], cl
push eax
mov byte [eax + 4], 0
call edi
add esp, 4
lea esi, [eax - 0x76c]
push 3
call fcn.00403604
movzx ecx, byte [esp + 0xf9]
add esp, 4
mov byte [eax], cl
movzx ecx, byte [esp + 0xf6]
mov byte [eax + 1], cl
push eax
mov byte [eax + 2], 0
call edi
add esp, 4
lea edi, [eax - 1]
push 3
call fcn.00403604
movzx ecx, byte [esp + 0xfc]
add esp, 4
mov byte [eax], cl
movzx ecx, byte [esp + 0xf9]
mov byte [eax + 1], cl
push eax
mov byte [eax + 2], 0
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov dword [esp + 0x14], eax
lea eax, [esp + 0xf0]
push 0x80
push eax
push 0x405530
push dword [esp + 0x2c]
call fcn.00401080
add esp, 0x10
cmp esi, dword [esp + 0x60]
jne 0x401c17
cmp edi, dword [esp + 0x5c]
jne 0x401c17
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x58]
jne 0x401c17
push 0x80
lea eax, [esp + 0xf4]
mov byte [0x407408], 0
push eax
push 0x405530
push dword [esp + 0x2c]
call fcn.00401080
push dword [esp + 0x30]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 0x14
push dword [esp + 0x20]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
cmp eax, 0xffffffff
jne 0x401af9
push 0x4034c0
call fcn.00401580
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, eax
call fcn.00403270
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fcloseall]
mov edi, dword [esp + 0x18]
lea eax, [esp + 0xf0]
push eax
push 0xb
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
xor edx, edx
mov ecx, edi
push 3
call fcn.00402e30
mov esi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
push eax
call esi
add esp, 4
sub eax, 0x76c
mov edx, 5
mov dword [esp + 0x3c], eax
mov ecx, edi
push 6
call fcn.00402e30
add esp, 4
push eax
call esi
add esp, 4
dec eax
mov edx, 8
mov dword [esp + 0x38], eax
mov ecx, edi
push 9
call fcn.00402e30
add esp, 4
push eax
call esi
add esp, 4
mov dword [esp + 0x34], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__mktime64]
add esp, 4
push dword [0x407404]
push dword [0x407400]
push edx
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__difftime64]
fstp qword [esp + 0x28]
movsd xmm0, qword [esp + 0x28]
add esp, 0x10
comisd xmm0, xmmword [0x4058f8]
jbe 0x401bd9
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4e8]
xor ecx, esp
call fcn.004035b5
mov esp, ebp
pop ebp
ret
cmp byte [0x4075b4], 0
jne 0x401bf2
mov edx, dword [esp + 0x10]
mov byte [0x4075b4], 1
jmp 0x40185c
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push ebx
call eax
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4e8]
xor ecx, esp
call fcn.004035b5
mov esp, ebp
pop ebp
ret
push dword [esp + 0x20]
mov byte [0x407408], 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
push dword [esp + 0x20]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test eax, eax
je 0x401c5f
push 0x4034c0
call fcn.00401580
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, eax
call fcn.00403270
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fcloseall]
mov edx, dword [esp + 0x10]
mov ecx, ebx
call fcn.00401ca0
call fcn.004016c0
mov ecx, dword [esp + 0x4f4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004035b5
mov esp, ebp
pop ebp
ret