Function at 0x409efc
Capabilities:
Get hostname

Disassembly:
mov eax, 0x40eb7c
call fcn.0040d790
sub esp, 0x360
push ebx
push esi
push edi
mov esi, 0x416b40
mov dword [ebp - 0x10], esp
push esi
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_1
xor ebx, ebx
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 1
cmp dword [eax - 8], ebx
jne 0x409ffc
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CString::CString
movzx eax, word [ebp - 0x62]
push eax
mov byte [ebp - 4], 2
movzx eax, word [ebp - 0x66]
push eax
movzx eax, word [ebp - 0x68]
push eax
lea eax, [ebp - 0x2c]
push str._4d__02d__02d
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea eax, [ebp - 0x16c]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x16c]
lea ecx, [ebp - 0x1c]
push eax
call sub.MFC42.DLL_CString::CString_1
push 0x5c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.0040d3c8
push dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
push dword [ebp - 0x1c]
push str._slog_sexception.log
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0040d3c8
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0040d3c8
jmp 0x40a008
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::TrimRight
mov eax, dword [ebp - 0x14]
cmp dword [eax - 8], ebx
je 0x40a1b3
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CFile::CFile
push ebx
push 0x3042
push dword [ebp - 0x14]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CFile::Open
cmp dword [ebp - 0x40], 0xffffffff
mov dword [ebp - 4], 5
je 0x40a1a7
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString
movzx eax, word [ebp - 0x4a]
push eax
mov byte [ebp - 4], 8
movzx eax, word [ebp - 0x4c]
push eax
movzx eax, word [ebp - 0x4e]
push eax
movzx eax, word [ebp - 0x50]
push eax
movzx eax, word [ebp - 0x52]
push eax
movzx eax, word [ebp - 0x56]
push eax
movzx eax, word [ebp - 0x58]
push eax
lea eax, [ebp - 0x28]
push str._4d__02d__02d__02d:_02d:_02d:_03d
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x24
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::CString
push esi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString_1
cmp dword [ebp + 0x10], ebx
mov byte [ebp - 4], 0xa
jne 0x40a0c1
push 0x416688
jmp 0x40a0c6
push 0x416684
lea ecx, [ebp - 0x24]
call fcn.0040d3e0
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov esi, 0x200
lea eax, [ebp - 0x36c]
push esi
push ebx
push eax
mov byte [ebp - 4], 0xb
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], esi
push eax
lea eax, [ebp - 0x36c]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x36c]
push eax
lea eax, [ebp - 0x20]
push 0x415164
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::TrimRight
push dword [ebp - 0x20]
lea eax, [ebp - 0x30]
push dword [ebp + 0xc]
push dword [ebp - 0x24]
push dword [ebp + 8]
push dword [ebp - 0x28]
push str.__s___s__s_s_s_r_n
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp - 0x44]
add esp, 0x1c
lea ecx, [ebp - 0x44]
push 2
push ebx
call dword [eax + 0x30]
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x44]
push dword [eax - 8]
push eax
call sub.MFC42.DLL_CFile::Write
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CFile::Flush
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CFile::Close
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call fcn.0040d3c8
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 9
call fcn.0040d3c8
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 8
call fcn.0040d3c8
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.0040d3c8
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.0040d704
mov byte [ebp - 4], bl
jmp 0x40a1e3
lea ecx, [ebp - 0x14]
call fcn.0040d3c8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040d3c8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret