Function at 0x49e5e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aec41
mov eax, dword fs:[0]
push eax
mov eax, 0x8084
call fcn.004688f0
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x808c], ecx
mov dword [ebp - 0x4018], 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x401c]
call fcn.004055a0
mov dword [ebp - 4], 0
mov dword [ebp - 0x4060], 0
mov dword [ebp - 0x8068], 0
cmp dword [ebp + 0xc], 0
jne 0x49e674
mov dword [ebp - 0x8070], 0x57
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x401c]
call fcn.004055c0
mov eax, dword [ebp - 0x8070]
jmp 0x49e9b5
mov dword [ebp - 0x405c], 0
mov dword [ebp - 0x4034], 0
mov dword [ebp - 0x4030], 0
mov dword [ebp - 0x402c], 0
mov dword [ebp - 0x4050], 0
mov dword [ebp - 0x4054], 0
push 0x38
push 0x4c16b0
lea eax, [ebp - 0x4054]
push eax
call fcn.0049dde0
add esp, 0xc
mov dword [ebp - 0x405c], eax
cmp dword [ebp - 0x405c], 0
je 0x49e6fe
mov ecx, dword [ebp - 0x405c]
mov dword [ebp - 0x8074], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x401c]
call fcn.004055c0
mov eax, dword [ebp - 0x8074]
jmp 0x49e9b5
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
mov ecx, dword [ebp + 8]
call fcn.00405580
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x401c]
call fcn.004055e0
lea ecx, [ebp - 0x401c]
call fcn.00405610
cmp eax, 0xffffffff
jne 0x49e770
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x405c], eax
mov edx, dword [ebp - 0x405c]
mov dword [ebp - 0x8078], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x401c]
call fcn.004055c0
mov eax, dword [ebp - 0x8078]
jmp 0x49e9b5
mov eax, dword [ebp - 0x808c]
mov ecx, dword [eax + 4]
push ecx
lea edx, [ebp - 0x4050]
push edx
push 0x4000
lea eax, [ebp - 0x8064]
push eax
call dword [ebp + 0xc]
mov dword [ebp - 0x405c], eax
cmp dword [ebp - 0x405c], 0
jne 0x49e7e3
lea ecx, [ebp - 0x4054]
push ecx
call fcn.0049b700
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x405c], eax
mov edx, dword [ebp - 0x405c]
mov dword [ebp - 0x807c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x401c]
call fcn.004055c0
mov eax, dword [ebp - 0x807c]
jmp 0x49e9b5
cmp dword [ebp - 0x4050], 0
jne 0x49e7f1
jmp 0x49e966
lea eax, [ebp - 0x8064]
mov dword [ebp - 0x4054], eax
mov dword [ebp - 0x4044], 0x4000
lea ecx, [ebp - 0x4014]
mov dword [ebp - 0x4048], ecx
push 0
lea edx, [ebp - 0x4054]
push edx
call fcn.0049bd90
add esp, 8
mov dword [ebp - 0x4018], eax
mov eax, dword [ebp - 0x4018]
mov dword [ebp - 0x8090], eax
cmp dword [ebp - 0x8090], 2
je 0x49e853
cmp dword [ebp - 0x8090], 0xfffffffb
jbe 0x49e895
cmp dword [ebp - 0x8090], 0xfffffffd
jbe 0x49e85d
jmp 0x49e895
mov dword [ebp - 0x4018], 0xfffffffd
lea ecx, [ebp - 0x4054]
push ecx
call fcn.0049b700
add esp, 4
mov edx, dword [ebp - 0x4018]
mov dword [ebp - 0x8080], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x401c]
call fcn.004055c0
mov eax, dword [ebp - 0x8080]
jmp 0x49e9b5
mov eax, 0x4000
sub eax, dword [ebp - 0x4044]
mov dword [ebp - 0x4058], eax
mov dword [ebp - 0x806c], 0
push 0
lea ecx, [ebp - 0x806c]
push ecx
mov edx, dword [ebp - 0x4058]
push edx
lea eax, [ebp - 0x4014]
push eax
lea ecx, [ebp - 0x401c]
call fcn.00405610
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x405c], eax
cmp dword [ebp - 0x405c], 0
je 0x49e8f6
mov ecx, dword [ebp - 0x806c]
cmp ecx, dword [ebp - 0x4058]
je 0x49e94c
cmp dword [ebp - 0x405c], 0
jne 0x49e90d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x405c], eax
jmp 0x49e917
mov dword [ebp - 0x405c], 0xffffffff
lea edx, [ebp - 0x4054]
push edx
call fcn.0049b700
add esp, 4
mov eax, dword [ebp - 0x405c]
mov dword [ebp - 0x8084], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x401c]
call fcn.004055c0
mov eax, dword [ebp - 0x8084]
jmp 0x49e9b5
cmp dword [ebp - 0x4044], 0
je 0x49e7fd
cmp dword [ebp - 0x4018], 1
jne 0x49e770
lea ecx, [ebp - 0x4054]
push ecx
call fcn.0049b700
add esp, 4
lea ecx, [ebp - 0x401c]
call fcn.00405610
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov edx, dword [ebp - 0x4018]
sub edx, 1
neg edx
sbb edx, edx
and edx, 0xfffffffd
mov dword [ebp - 0x8088], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x401c]
call fcn.004055c0
mov eax, dword [ebp - 0x8088]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00467491
mov esp, ebp
pop ebp
ret 8