Function at 0x40ff30
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4f34c2
mov eax, dword fs:[0]
push eax
sub esp, 0x704
mov eax, dword [0x545628]
xor eax, esp
mov dword [esp + 0x700], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x545628]
xor eax, esp
push eax
lea eax, [esp + 0x718]
mov dword fs:[0], eax
mov eax, dword [esp + 0x728]
mov ebp, dword [esp + 0x72c]
mov dword [esp + 0x20], eax
call fcn.00415530
cmp byte [eax + 0x128], 0
je 0x40ff90
add eax, 0x18
jmp 0x40ff93
mov eax, dword [eax + 0x14]
lea esi, [eax + 4]
xor edi, edi
cmp esi, edi
je 0x4103ff
cmp word [esi], di
je 0x4103ff
lea ecx, [esp + 0x14c]
call fcn.00410c10
mov eax, esi
lea edx, [esp + 0x14c]
mov dword [esp + 0x720], edi
call fcn.00410e40
push edi
push edi
push edi
push edi
push edi
push str.ErrorLog
lea ecx, [esp + 0x3c]
call fcn.00415c40
cmp byte [esp + 0x140], 0
lea eax, [esp + 0x30]
jne 0x40ffef
mov eax, dword [esp + 0x2c]
cmp word [eax + 4], 0x2e
jne 0x410009
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x150]
call fcn.00417080
jmp 0x41001a
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x150]
call fcn.00416320
cmp byte [esp + 0x140], 0
mov dword [esp + 0x24], vtable.t_str.0
jne 0x410041
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
cmp eax, ecx
je 0x410041
push eax
call fcn.004d1d15
add esp, 4
lea ecx, [esp + 0x14c]
mov dword [esp + 0x720], 1
call fcn.00416540
test al, al
jne 0x4100ae
mov byte [esp + 0x18], al
mov dword [esp + 0x14], edi
push edi
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x154]
mov byte [esp + 0x728], 2
call fcn.00417180
test al, al
jne 0x410099
lea ecx, [esp + 0x14]
call fcn.0040faa0
lea ecx, [esp + 0x14]
call fcn.0040f9f0
jmp 0x4103f3
lea eax, [esp + 0x14c]
call fcn.00418670
lea ecx, [esp + 0x14]
call fcn.0040f9f0
push edi
call fcn.004d2ce5
add esp, 4
lea ecx, [esp + 0x39c]
mov esi, eax
mov ebx, edx
call fcn.00410c10
push str._Y__M__D
push ebx
push esi
lea esi, [esp + 0x3a8]
mov byte [esp + 0x72c], 3
call fcn.00411780
cmp byte [esp + 0x4b8], 0
lea eax, [esp + 0x3a8]
jne 0x4100fa
mov eax, dword [esp + 0x3a4]
push edi
push edi
push edi
push edi
add eax, 4
push eax
lea eax, [esp + 0x160]
push eax
lea ecx, [esp + 0x28c]
call fcn.00415f00
mov ebx, 4
lea ecx, [esp + 0x274]
mov byte [esp + 0x720], bl
call fcn.00416540
test al, al
jne 0x41018b
mov byte [esp + 0x18], al
mov dword [esp + 0x14], edi
push edi
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x27c]
mov byte [esp + 0x728], 5
call fcn.00417180
test al, al
jne 0x41016f
lea ecx, [esp + 0x14]
call fcn.0040faa0
lea ecx, [esp + 0x14]
call fcn.0040f9f0
jmp 0x4103db
lea eax, [esp + 0x274]
call fcn.00418670
lea ecx, [esp + 0x14]
mov byte [esp + 0x720], bl
call fcn.0040f9f0
mov edx, dword [esp + 0x20]
push edi
push edi
push edi
push str..log
push ebp
lea eax, [esp + 0x288]
push eax
lea ecx, [esp + 0x4dc]
mov byte [edx + 4], 0
call fcn.00415f00
cmp byte [esp + 0x5e0], 0
lea eax, [esp + 0x4d0]
jne 0x4101c8
mov eax, dword [esp + 0x4cc]
push edi
push 0x80
push ebx
push edi
push edi
push ebx
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4102fa
push 1
push ebp
call fcn.00418e70
push 1
push ebp
call fcn.00418ec0
add esp, 0x10
push 2
push edi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4102fa
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, edi
jne 0x410241
push edi
lea ecx, [esp + 0x18]
push ecx
push 2
lea edx, [esp + 0x28]
push edx
push ebp
mov byte [esp + 0x30], 0xff
mov byte [esp + 0x31], 0xfe
mov dword [esp + 0x28], edi
call ebx
cmp dword [esp + 0x14], 2
jne 0x4102fa
lea ecx, [esp + 0x5ec]
call fcn.00410c10
mov eax, dword [esp + 0x20]
push eax
lea edi, [esp + 0x5f0]
call fcn.0040fd20
lea ecx, [esp + 0x24]
call fcn.00410c10
push 0x52a240
push 0
call fcn.004d2ce5
add esp, 4
push edx
push eax
lea esi, [esp + 0x30]
call fcn.00411780
push 0x52a23c
push 0x52a3bc
mov edx, esi
call fcn.004114a0
add esp, 8
mov ecx, edi
call fcn.004162a0
push eax
push 0x52a3bc
mov edx, esi
call fcn.004114a0
push 0x52a198
push 0x52a3bc
mov edx, esi
call fcn.004114a0
mov esi, dword [esp + 0x38]
add esp, 0x10
push 0
lea ecx, [esp + 0x18]
push ecx
add esi, esi
push esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], 0
call fcn.004162a0
push eax
push ebp
call ebx
lea ecx, [esp + 0x24]
cmp dword [esp + 0x14], esi
je 0x4103b7
call fcn.004161d0
mov ecx, edi
call fcn.004161d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esp + 0x5e0], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x4c4], esi
jne 0x410331
mov eax, dword [esp + 0x4cc]
lea edx, [esp + 0x4d0]
cmp eax, edx
je 0x410331
push eax
call fcn.004d1d15
add esp, 4
cmp byte [esp + 0x390], 0
mov dword [esp + 0x274], esi
jne 0x41035d
mov eax, dword [esp + 0x27c]
lea ecx, [esp + 0x280]
cmp eax, ecx
je 0x41035d
push eax
call fcn.004d1d15
add esp, 4
cmp byte [esp + 0x4b8], 0
mov dword [esp + 0x39c], esi
jne 0x410389
mov eax, dword [esp + 0x3a4]
lea edx, [esp + 0x3a8]
cmp eax, edx
je 0x410389
push eax
call fcn.004d1d15
add esp, 4
cmp byte [esp + 0x268], 0
mov dword [esp + 0x14c], esi
jne 0x4103ff
mov eax, dword [esp + 0x154]
lea ecx, [esp + 0x158]
cmp eax, ecx
je 0x4103ff
push eax
call fcn.004d1d15
add esp, 4
jmp 0x4103ff
call fcn.004161d0
lea ecx, [esp + 0x5ec]
call fcn.004161d0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x4c4]
call fcn.004161d0
lea ecx, [esp + 0x274]
call fcn.004161d0
lea ecx, [esp + 0x39c]
call fcn.004161d0
lea ecx, [esp + 0x14c]
call fcn.004161d0
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.004d158d
add esp, 0x710
ret 8