Function at 0x40cd26
Capabilities:
Get hostname

Disassembly:
mov eax, 0x40f054
call fcn.0040d790
sub esp, 0x354
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x10], esp
call sub.MFC42.DLL_CFile::CFile
mov esi, 0x416b40
xor ebx, ebx
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_1
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_1
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_1
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 4
sub eax, ebx
je 0x40cda6
dec eax
je 0x40cd9f
dec eax
je 0x40cd98
push str.Error
jmp 0x40cdab
push 0x416684
jmp 0x40cdab
push 0x416ab8
jmp 0x40cdab
push 0x416688
lea ecx, [ebp - 0x18]
call fcn.0040d3e0
mov ecx, dword [edi + 4]
lea eax, [edi + 4]
cmp dword [ecx - 8], ebx
jne 0x40ce71
lea eax, [ebp - 0x5c]
push eax
call sub.MFC42.DLL_COleDateTime::GetTickCount
lea eax, [ebp - 0x24]
push str._Y__m__d
push eax
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_COleDateTime::Format
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.0040d3c8
lea eax, [ebp - 0x160]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x160]
lea ecx, [ebp + 0x10]
push eax
call sub.MFC42.DLL_CString::CString_1
push 0x5c
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [ebp + 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call fcn.0040d3c8
push dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push dword [ebp + 0x10]
push str._sLogImageTransClient__s_.log
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 4
call fcn.0040d3c8
jmp 0x40ce7a
push eax
lea ecx, [ebp - 0x14]
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
jne 0x40ce9a
or esi, 0xffffffff
jmp 0x40d00d
push ebx
push 0x3042
push dword [ebp - 0x14]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CFile::Open
cmp dword [ebp - 0x38], 0xffffffff
mov dword [ebp - 4], 4
jne 0x40cecc
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CFile::Close
push 0xfffffffffffffffd
pop esi
jmp 0x40d00d
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 0xa
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x42]
push eax
movzx eax, word [ebp - 0x44]
push eax
movzx eax, word [ebp - 0x46]
push eax
movzx eax, word [ebp - 0x48]
push eax
movzx eax, word [ebp - 0x4a]
push eax
movzx eax, word [ebp - 0x4e]
push eax
movzx eax, word [ebp - 0x50]
push eax
lea eax, [ebp - 0x20]
push str._4d__02d__02d__02d:_02d:_02d:_03d
push eax
call sub.MFC42.DLL_CString::Format
mov esi, 0x200
add esp, 0x24
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x40], esi
call sub.MFC42.DLL_CString::CString
push esi
lea eax, [ebp - 0x360]
push ebx
push eax
mov byte [ebp - 4], 0xb
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x360]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x360]
push eax
lea eax, [ebp - 0x1c]
push 0x415164
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::TrimRight
push dword [ebp - 0x1c]
push dword [ebp + 0xc]
push dword [ebp - 0x2c]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [ebp - 0x28]
push dword [ebp + 8]
push dword [ebp - 0x20]
push str.__s___s_ThreadID:__d__s__s_s_s_r_n
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp - 0x3c]
add esp, 0x24
lea ecx, [ebp - 0x3c]
push 2
push ebx
call dword [eax + 0x30]
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x3c]
push dword [eax - 8]
push eax
call sub.MFC42.DLL_CFile::Write
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CFile::Flush
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CFile::Close
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xa
call fcn.0040d3c8
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.0040d3c8
xor esi, esi
jmp 0x40d00d
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0040d3c8
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.0040d3c8
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0040d3c8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0040d3c8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0040d704
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc