Function at 0x40fc60
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4987fc
mov eax, dword fs:[0]
push eax
sub esp, 0x704
mov eax, dword [0x4c5280]
xor eax, esp
mov dword [esp + 0x700], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c5280]
xor eax, esp
push eax
lea eax, [esp + 0x718]
mov dword fs:[0], eax
cmp byte [0x4cad31], 0
mov eax, dword [esp + 0x728]
mov ebp, dword [esp + 0x72c]
mov dword [esp + 0x20], eax
jne 0x40ffc3
call fcn.0040d840
cmp byte [eax + 0x96a], 0
je 0x40ffc3
cmp byte [0x4cad31], 0
jne 0x40ffc3
call fcn.0040d840
cmp byte [eax + 0x128], 0
je 0x40fcec
add eax, 0x18
jmp 0x40fcef
mov eax, dword [eax + 0x14]
add eax, 4
je 0x40ffc3
cmp word [eax], 0
je 0x40ffc3
push 0
push 0
push 0
push 0
push str.ErrorLog
push eax
lea ecx, [esp + 0x3b4]
call fcn.0040df70
lea ecx, [esp + 0x39c]
mov dword [esp + 0x720], 0
call fcn.0040e540
test al, al
je 0x40ffb7
push 0
call fcn.004760f0
add esp, 4
lea ecx, [esp + 0x274]
mov esi, eax
mov edi, edx
call fcn.00410770
push str._Y__M__D
push edi
push esi
lea eax, [esp + 0x280]
mov byte [esp + 0x72c], 1
call fcn.00411210
cmp byte [esp + 0x390], 0
lea eax, [esp + 0x280]
jne 0x40fd88
mov eax, dword [esp + 0x27c]
push 0
lea ecx, [esp + 0x150]
push ecx
lea ebx, [eax + 4]
lea ecx, [esp + 0x3a4]
call fcn.0040e140
lea ecx, [esp + 0x14c]
mov byte [esp + 0x720], 2
call fcn.0040e540
xor ebx, ebx
test al, al
jne 0x40fe11
mov byte [esp + 0x18], bl
mov dword [esp + 0x14], ebx
push ebx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x154]
mov byte [esp + 0x728], 3
call fcn.0040e8f0
test al, al
jne 0x40fdf4
lea edi, [esp + 0x14]
call fcn.0040f7d0
call fcn.0040f730
jmp 0x40ff9f
lea eax, [esp + 0x14c]
call fcn.0040f670
lea edi, [esp + 0x14]
mov byte [esp + 0x720], 2
call fcn.0040f730
mov eax, dword [esp + 0x20]
push str..log
lea ecx, [esp + 0x5f0]
mov byte [eax + 4], bl
push ecx
mov ebx, ebp
lea ecx, [esp + 0x154]
call fcn.0040e140
xor ebp, ebp
push ebp
push 0x80
push 4
push ebp
push ebp
push 4
lea eax, [esp + 0x604]
call fcn.00410eb0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40ff73
push 1
push esi
call fcn.00415b20
push 1
push esi
call fcn.00415b70
add esp, 0x10
push 2
push ebp
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x40ff73
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebp
jne 0x40feb9
push ebp
lea edx, [esp + 0x18]
push edx
push 2
lea eax, [esp + 0x28]
push eax
push esi
mov byte [esp + 0x30], 0xff
mov byte [esp + 0x31], 0xfe
mov dword [esp + 0x28], ebp
call ebx
cmp dword [esp + 0x14], 2
jne 0x40ff73
lea ecx, [esp + 0x4c4]
call fcn.00410770
mov ecx, dword [esp + 0x20]
push ecx
lea edi, [esp + 0x4c8]
call fcn.0040fa90
lea ecx, [esp + 0x24]
call fcn.00410770
push 0x4b98e8
push ebp
call fcn.004760f0
add esp, 4
push edx
push eax
lea eax, [esp + 0x30]
call fcn.00411210
push 0x4b98e4
push 0x4b8ff4
lea edx, [esp + 0x2c]
call fcn.00410f90
add esp, 8
mov eax, edi
call fcn.00410eb0
push eax
push 0x4b8ff4
lea edx, [esp + 0x2c]
call fcn.00410f90
push 0x4b9870
push 0x4b8ff4
lea edx, [esp + 0x34]
call fcn.00410f90
mov edi, dword [esp + 0x38]
add esp, 0x10
push ebp
lea edx, [esp + 0x18]
push edx
add edi, edi
push edi
lea eax, [esp + 0x30]
mov dword [esp + 0x20], ebp
call fcn.00410eb0
push eax
push esi
call ebx
lea ecx, [esp + 0x24]
cmp dword [esp + 0x14], edi
je 0x40ff7b
call fcn.0040e2d0
lea ecx, [esp + 0x4c4]
call fcn.0040e2d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40ff93
call fcn.0040e2d0
lea ecx, [esp + 0x4c4]
call fcn.0040e2d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x5ec]
call fcn.0040e2d0
lea ecx, [esp + 0x14c]
call fcn.0040e2d0
lea ecx, [esp + 0x274]
call fcn.0040e2d0
lea ecx, [esp + 0x39c]
call fcn.0040e2d0
mov ecx, dword [esp + 0x718]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x700]
xor ecx, esp
call fcn.00474db0
add esp, 0x710
ret 8