Function at 0x408b3f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426183
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0xb8], 0xffffffff
je 0x408b7e
cmp dword [ebp + 8], 0x64
jne 0x408b92
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
jmp 0x408e59
mov byte [0x4317c4], 0
cmp dword [ebp + 0xc], 0
je 0x408bc3
push 0
push 0xff
push 0x4317c4
push 0x400
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
jmp 0x408be8
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
mov ecx, dword [edx + 0x80]
cmp ecx, dword [eax + 0x7c]
jne 0x408be8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
jmp 0x408e59
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x7c]
mov dword [edx + 0x80], ecx
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0xb8], 0
jne 0x408c6a
call sub.comnet.dll_LCOMNET_GetMyDir
push eax
lea ecx, [ebp - 0x14]
call fcn.0042554c
push str._scheduler.log
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_1
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push 1
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0xb8], eax
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0xb8], 0xffffffff
jne 0x408c6a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
jmp 0x408e59
lea eax, [ebp - 0x28]
push eax
call sub.MFC42.DLL_CTime::GetTickCount
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040b090
push str._A___B__d___Y__H:_M:_S
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CTime::Format
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x38], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x30]
add ecx, 0x6c
push ecx
lea ecx, [ebp - 0x14]
call fcn.00425564
push 0x42fa84
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [ebp - 0x30]
add ecx, 0x54
call fcn.0040f5c0
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x7c], eax
jg 0x408d50
cmp dword [ebp + 8], 0x1f4
jne 0x408d0f
mov eax, dword [ebp - 0x30]
fld qword [eax + 0x88]
fcomp qword [0x4290b8]
fnstsw ax
test ah, 0x40
je 0x408d0f
push str.End_of_Wait
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_1
jmp 0x408d4e
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x30]
call fcn.00408ae8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jle 0x408d41
mov edx, dword [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x30]
add ecx, 0x40
call fcn.0040ada0
add eax, 4
push eax
lea ecx, [ebp - 0x14]
call fcn.00425564
jmp 0x408d4e
push str.Unknown_Command
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_1
jmp 0x408d5d
push str.Finished
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_1
movsx eax, byte [0x4317c4]
test eax, eax
je 0x408d82
push str._Error__
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_1
push 0x4317c4
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_1
push 0x42fac0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x14]
call fcn.00401c20
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
push 0
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00401c20
push eax
push 1
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408dd7
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x10]
je 0x408df4
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0xb8], 0xffffffff
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x68], 0
je 0x408e4a
cmp dword [ebp - 0x18], 1
jbe 0x408e25
push 0
mov eax, dword [ebp - 0x18]
sub eax, 1
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::SetAt
push 0
mov ecx, dword [ebp - 0x18]
sub ecx, 2
push ecx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::SetAt
mov ecx, dword [ebp - 0x30]
call fcn.0040bed0
mov dword [ebp - 0x24], eax
push 1
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0
push 0x402
mov ecx, dword [ebp - 0x24]
call fcn.00406960
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8