Function at 0x46c300
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471ea1
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x4a7534]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb0], ecx
call fcn.004655d0
mov ecx, eax
call fcn.00464950
mov ecx, eax
call fcn.0046cf00
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x46c354
mov eax, dword [ebp - 0x28]
movzx ecx, word [eax]
test ecx, ecx
jne 0x46c359
jmp 0x46c706
push 0
push 0
push 0
push 0
push str.ErrorLog
mov edx, dword [ebp - 0x28]
push edx
lea ecx, [ebp - 0x58]
call fcn.0046d470
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.0046d1f0
movzx eax, al
test eax, eax
jne 0x46c3e5
lea ecx, [ebp - 0x70]
call fcn.0046ba70
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x58]
call fcn.0046e450
movzx edx, al
test edx, edx
jne 0x46c3d1
lea ecx, [ebp - 0x70]
call fcn.0046bdf0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.0046ba10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.0046cf20
jmp 0x46c706
lea ecx, [ebp - 0x58]
call fcn.0046e300
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.0046ba10
push 0
call fcn.0046ba90
add esp, 4
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], edx
lea ecx, [ebp - 0x48]
call fcn.00468b50
mov byte [ebp - 4], 2
push str._Y__M__D
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00469340
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x48]
call fcn.00468670
push eax
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x24]
call fcn.0046e160
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.0046d1f0
movzx eax, al
test eax, eax
jne 0x46c4bb
lea ecx, [ebp - 0x78]
call fcn.0046ba70
mov byte [ebp - 4], 4
push 0
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x24]
call fcn.0046e450
movzx edx, al
test edx, edx
jne 0x46c4a7
lea ecx, [ebp - 0x78]
call fcn.0046bdf0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x78]
call fcn.0046ba10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.0046cf20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00468790
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.0046cf20
jmp 0x46c706
lea ecx, [ebp - 0x24]
call fcn.0046e300
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x78]
call fcn.0046ba10
mov eax, dword [ebp - 0xb0]
mov byte [eax + 4], 0
push 0
push 0
push 0
push str..log
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x38]
call fcn.0046e160
push 0
push 0x80
push 4
push 0
push 0
push 4
lea ecx, [ebp - 0x38]
call fcn.0046cee0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x46c50c
jmp 0x46c6ce
push 0x10000000
push 1
mov eax, dword [ebp - 0x10]
push eax
call fcn.00466540
add esp, 0xc
push 1
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004667a0
add esp, 8
push 2
push 0
push 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0xffffffff
jne 0x46c54b
jmp 0x46c6ce
cmp dword [ebp - 0x68], 0
jne 0x46c595
mov byte [ebp - 0x80], 0xff
mov byte [ebp - 0x7f], 0xfe
mov dword [ebp - 0x7c], 2
mov dword [ebp - 0x84], 0
push 0
lea eax, [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0x7c]
push ecx
lea edx, [ebp - 0x80]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x84]
cmp ecx, dword [ebp - 0x7c]
je 0x46c595
jmp 0x46c6ce
lea ecx, [ebp - 0x94]
call fcn.00468b50
push 0x493c48
push 0x493c50
push 1
lea edx, [ebp - 0x94]
push edx
mov ecx, dword [ebp - 0xb0]
call fcn.0046c1a0
lea ecx, [ebp - 0xac]
call fcn.00468b50
push 0x493c54
push 0
call fcn.0046ba90
add esp, 4
push edx
push eax
lea ecx, [ebp - 0xac]
call fcn.00469340
push 0x493c84
lea ecx, [ebp - 0x94]
call fcn.00468670
push eax
push 0x493c80
lea ecx, [ebp - 0xac]
call fcn.00468d90
mov ecx, eax
call fcn.00468d90
mov ecx, eax
call fcn.00468d90
lea ecx, [ebp - 0xac]
call fcn.00468750
shl eax, 1
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x9c], 0
push 0
lea eax, [ebp - 0x9c]
push eax
mov ecx, dword [ebp - 0x98]
push ecx
lea ecx, [ebp - 0xac]
call fcn.00468640
push eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x9c]
cmp eax, dword [ebp - 0x98]
je 0x46c67d
lea ecx, [ebp - 0xac]
call fcn.00468790
lea ecx, [ebp - 0x94]
call fcn.00468790
jmp 0x46c6ce
lea ecx, [ebp - 0xac]
call fcn.00468790
lea ecx, [ebp - 0x94]
call fcn.00468790
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x38]
call fcn.0046cf20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.0046cf20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00468790
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.0046cf20
jmp 0x46c706
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x38]
call fcn.0046cf20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.0046cf20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00468790
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.0046cf20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4