Function at 0x49d1b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a4322
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x4ed3dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb0], ecx
call fcn.00498840
mov ecx, eax
call fcn.00497a30
mov ecx, eax
call fcn.00499a60
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x49d204
mov eax, dword [ebp - 0x28]
movzx ecx, word [eax]
test ecx, ecx
jne 0x49d209
jmp 0x49d5b6
push 0
push 0
push 0
push 0
push str.ErrorLog
mov edx, dword [ebp - 0x28]
push edx
lea ecx, [ebp - 0x58]
call fcn.0049a5c0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.00499970
movzx eax, al
test eax, eax
jne 0x49d295
lea ecx, [ebp - 0x70]
call fcn.0049c860
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x58]
call fcn.0049a900
movzx edx, al
test edx, edx
jne 0x49d281
lea ecx, [ebp - 0x70]
call fcn.0049cbe0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.0049c800
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00499a80
jmp 0x49d5b6
lea ecx, [ebp - 0x58]
call fcn.00499b10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.0049c800
push 0
call fcn.0049c880
add esp, 4
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], edx
lea ecx, [ebp - 0x48]
call fcn.0049be10
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.0049c550
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x48]
call fcn.0049b9c0
push eax
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x24]
call fcn.0049aa90
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.00499970
movzx eax, al
test eax, eax
jne 0x49d36b
lea ecx, [ebp - 0x78]
call fcn.0049c860
mov byte [ebp - 4], 4
push 0
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x24]
call fcn.0049a900
movzx edx, al
test edx, edx
jne 0x49d357
lea ecx, [ebp - 0x78]
call fcn.0049cbe0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x78]
call fcn.0049c800
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.00499a80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.0049ba50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00499a80
jmp 0x49d5b6
lea ecx, [ebp - 0x24]
call fcn.00499b10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x78]
call fcn.0049c800
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.0049aa90
push 0
push 0x80
push 4
push 0
push 0
push 4
lea ecx, [ebp - 0x38]
call fcn.00499a40
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x49d3bc
jmp 0x49d57e
push 0x10000000
push 1
mov eax, dword [ebp - 0x10]
push eax
call fcn.00499560
add esp, 0xc
push 1
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004997c0
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 0x49d3fb
jmp 0x49d57e
cmp dword [ebp - 0x68], 0
jne 0x49d445
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 0x49d445
jmp 0x49d57e
lea ecx, [ebp - 0x94]
call fcn.0049be10
push 0x4d7b74
push 0x4d7b7c
push 1
lea edx, [ebp - 0x94]
push edx
mov ecx, dword [ebp - 0xb0]
call fcn.0049d050
lea ecx, [ebp - 0xac]
call fcn.0049be10
push 0x4d7b80
push 0
call fcn.0049c880
add esp, 4
push edx
push eax
lea ecx, [ebp - 0xac]
call fcn.0049c550
push 0x4d7bb0
lea ecx, [ebp - 0x94]
call fcn.0049b9c0
push eax
push 0x4d7bac
lea ecx, [ebp - 0xac]
call fcn.0049c020
mov ecx, eax
call fcn.0049c020
mov ecx, eax
call fcn.0049c020
lea ecx, [ebp - 0xac]
call fcn.0049ba10
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.0049b990
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 0x49d52d
lea ecx, [ebp - 0xac]
call fcn.0049ba50
lea ecx, [ebp - 0x94]
call fcn.0049ba50
jmp 0x49d57e
lea ecx, [ebp - 0xac]
call fcn.0049ba50
lea ecx, [ebp - 0x94]
call fcn.0049ba50
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x38]
call fcn.00499a80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.00499a80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.0049ba50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00499a80
jmp 0x49d5b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x38]
call fcn.00499a80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.00499a80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.0049ba50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00499a80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4