Function at 0x40ed15
Capabilities:
Get file size
Get hostname
Write file on windows

Disassembly:
push ebp
sub esp, 0x210
lea ebp, [esp - 4]
mov eax, dword [0x449e30]
xor eax, ebp
mov dword [ebp + 0x210], eax
push 0x20
mov eax, 0x4334ed
call fcn.004217bc
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov dword [esi], vtable.DPTraceNS::COutput.0
xor ebx, ebx
mov dword [ebp - 4], ebx
push ebx
lea ecx, [ebp - 0x14]
mov dword [esi], vtable.DPTraceNS::CFileOutput.0
call fcn.0040a771
mov byte [ebp - 4], 1
lea edi, [esi + 8]
push edi
lea ecx, [ebp - 0x14]
call fcn.0040c86c
test al, al
je 0x40f070
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push 0x8000080
lea ecx, [ebp - 0x14]
call fcn.0040832f
neg al
sbb eax, eax
and eax, 0xfffffffe
add eax, 4
push eax
push ebx
push 3
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x40f070
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x40efd1
push 0x104
lea eax, [ebp + 0x109]
push ebx
push eax
mov byte [ebp + 0x108], bl
call fcn.00421170
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0xc
push ebx
lea eax, [ebp - 0x10]
push eax
push 8
push str.trace3_r_n
push dword [esi + 4]
mov dword [ebp - 0x10], ebx
call edi
push str.16:34:47
push str.Aug_17_2010
push str.Compiled:__s__s_r_n
push 0xffffffffffffffff
lea eax, [ebp + 0x108]
push 0x105
push eax
call fcn.00423b51
add esp, 0x18
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x108]
push eax
call fcn.00421a80
pop ecx
push eax
lea eax, [ebp + 0x108]
push eax
push dword [esi + 4]
call edi
mov ecx, esi
call fcn.00408560
push 0x104
lea eax, [ebp + 1]
push ebx
push eax
mov byte [ebp], bl
call fcn.00421170
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
mov dword [ebp - 0x18], 0x104
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp]
push eax
push str.Machine_name:__s_r_n
push 0xffffffffffffffff
lea eax, [ebp + 0x108]
push 0x105
push eax
call fcn.00423b51
push 3
lea eax, [ebp + 0x20a]
push 0x438778
push eax
call fcn.00423c30
add esp, 0x20
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x108]
push eax
call fcn.00421a80
pop ecx
push eax
lea eax, [ebp + 0x108]
push eax
push dword [esi + 4]
call edi
push dword [0x449380]
push str.Trace_Ver:__s_r_n
push 0xffffffffffffffff
lea eax, [ebp + 0x108]
push 0x105
push eax
call fcn.00423b51
add esp, 0x14
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x108]
push eax
call fcn.00421a80
pop ecx
push eax
lea eax, [ebp + 0x108]
push eax
push dword [esi + 4]
call edi
mov ecx, esi
call fcn.0040e0fe
test al, al
jne 0x40ef1c
push ebx
lea eax, [ebp - 0x10]
push eax
push str.FileVersion:_UNKNOWN_r_n
call fcn.00421a80
pop ecx
push eax
push str.FileVersion:_UNKNOWN_r_n
push dword [esi + 4]
call edi
mov ecx, esi
call fcn.00408696
test eax, eax
jne 0x40ef42
push ebx
lea eax, [ebp - 0x10]
push eax
push str.No_U.are.U_products_found_r_n
call fcn.00421a80
pop ecx
push eax
push str.No_U.are.U_products_found_r_n
push dword [esi + 4]
call edi
call fcn.0040a6b3
test eax, eax
mov eax, str.installation:_LOCAL_r_n
jne 0x40ef55
mov eax, str.installation:_NETWORK_r_n
push 0xffffffffffffffff
push eax
lea eax, [ebp + 0x108]
push 0x105
push eax
call fcn.00423b70
add esp, 0x10
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x108]
push eax
call fcn.00421a80
pop ecx
push eax
lea eax, [ebp + 0x108]
push eax
push dword [esi + 4]
call edi
mov ecx, esi
call fcn.0040884e
push 0xffffffffffffffff
push 0x4391ac
lea eax, [ebp + 0x108]
push 0x105
push eax
call fcn.00423b70
add esp, 0x10
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x108]
push eax
call fcn.00421a80
pop ecx
push eax
lea eax, [ebp + 0x108]
push eax
push dword [esi + 4]
call edi
jmp 0x40f070
push 2
push ebx
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
mov word [ebp - 0x28], bx
lea edi, [ebp - 0x26]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x104
lea eax, [ebp + 0x109]
push ebx
push eax
mov byte [ebp + 0x108], bl
call fcn.00421170
movzx eax, word [ebp - 0x28]
push eax
movzx eax, word [ebp - 0x22]
push eax
movzx eax, word [ebp - 0x26]
push eax
push 0x43919c
push 0xffffffffffffffff
lea eax, [ebp + 0x108]
push 0x105
push eax
call fcn.00423b51
lea eax, [ebp + 0x108]
push eax
call fcn.004082c1
add esp, 0x2c
mov dword [ebp - 0x18], eax
call fcn.00423fa0
mov edi, esp
cmp edi, ebx
je 0x40f070
push 0xffffffffffffffff
lea eax, [ebp + 0x108]
push eax
push 0x4e
mov ecx, edi
call fcn.0040a722
push ebx
push dword [ebp - 0x18]
mov ecx, esi
push edi
call fcn.0040aa56
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.0040ae12
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x210]
xor ecx, ebp
call fcn.004217ad
add ebp, 0x214
leave
ret