Function at 0x46c7a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472311
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.00465a70
mov ecx, eax
call fcn.00464df0
mov ecx, eax
call fcn.0046d3a0
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x46c7f4
mov eax, dword [ebp - 0x28]
movzx ecx, word [eax]
test ecx, ecx
jne 0x46c7f9
jmp 0x46cba6
push 0
push 0
push 0
push 0
push str.ErrorLog
mov edx, dword [ebp - 0x28]
push edx
lea ecx, [ebp - 0x58]
call fcn.0046d910
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.0046d690
movzx eax, al
test eax, eax
jne 0x46c885
lea ecx, [ebp - 0x70]
call fcn.0046bf10
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x58]
call fcn.0046e8f0
movzx edx, al
test edx, edx
jne 0x46c871
lea ecx, [ebp - 0x70]
call fcn.0046c290
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.0046beb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.0046d3c0
jmp 0x46cba6
lea ecx, [ebp - 0x58]
call fcn.0046e7a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.0046beb0
push 0
call fcn.0046bf30
add esp, 4
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], edx
lea ecx, [ebp - 0x48]
call fcn.00468ff0
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.004697e0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x48]
call fcn.00468b10
push eax
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x24]
call fcn.0046e600
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.0046d690
movzx eax, al
test eax, eax
jne 0x46c95b
lea ecx, [ebp - 0x78]
call fcn.0046bf10
mov byte [ebp - 4], 4
push 0
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x24]
call fcn.0046e8f0
movzx edx, al
test edx, edx
jne 0x46c947
lea ecx, [ebp - 0x78]
call fcn.0046c290
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x78]
call fcn.0046beb0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.0046d3c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00468c30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.0046d3c0
jmp 0x46cba6
lea ecx, [ebp - 0x24]
call fcn.0046e7a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x78]
call fcn.0046beb0
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.0046e600
push 0
push 0x80
push 4
push 0
push 0
push 4
lea ecx, [ebp - 0x38]
call fcn.0046d380
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x46c9ac
jmp 0x46cb6e
push 0x10000000
push 1
mov eax, dword [ebp - 0x10]
push eax
call fcn.004669e0
add esp, 0xc
push 1
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00466c40
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 0x46c9eb
jmp 0x46cb6e
cmp dword [ebp - 0x68], 0
jne 0x46ca35
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 0x46ca35
jmp 0x46cb6e
lea ecx, [ebp - 0x94]
call fcn.00468ff0
push 0x493c58
push 0x493c60
push 1
lea edx, [ebp - 0x94]
push edx
mov ecx, dword [ebp - 0xb0]
call fcn.0046c640
lea ecx, [ebp - 0xac]
call fcn.00468ff0
push 0x493c64
push 0
call fcn.0046bf30
add esp, 4
push edx
push eax
lea ecx, [ebp - 0xac]
call fcn.004697e0
push 0x493c94
lea ecx, [ebp - 0x94]
call fcn.00468b10
push eax
push 0x493c90
lea ecx, [ebp - 0xac]
call fcn.00469230
mov ecx, eax
call fcn.00469230
mov ecx, eax
call fcn.00469230
lea ecx, [ebp - 0xac]
call fcn.00468bf0
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.00468ae0
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 0x46cb1d
lea ecx, [ebp - 0xac]
call fcn.00468c30
lea ecx, [ebp - 0x94]
call fcn.00468c30
jmp 0x46cb6e
lea ecx, [ebp - 0xac]
call fcn.00468c30
lea ecx, [ebp - 0x94]
call fcn.00468c30
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x38]
call fcn.0046d3c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.0046d3c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00468c30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.0046d3c0
jmp 0x46cba6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x38]
call fcn.0046d3c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.0046d3c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00468c30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.0046d3c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4