Function at 0x49dfd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ae341
mov eax, dword fs:[0]
push eax
mov eax, 0x8084
call fcn.004682e0
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.004055e0
mov dword [ebp - 4], 0
mov dword [ebp - 0x4060], 0
mov dword [ebp - 0x8068], 0
cmp dword [ebp + 0xc], 0
jne 0x49e064
mov dword [ebp - 0x8070], 0x57
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x401c]
call fcn.00405600
mov eax, dword [ebp - 0x8070]
jmp 0x49e3a5
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 0x4c1680
lea eax, [ebp - 0x4054]
push eax
call fcn.0049d7d0
add esp, 0xc
mov dword [ebp - 0x405c], eax
cmp dword [ebp - 0x405c], 0
je 0x49e0ee
mov ecx, dword [ebp - 0x405c]
mov dword [ebp - 0x8074], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x401c]
call fcn.00405600
mov eax, dword [ebp - 0x8074]
jmp 0x49e3a5
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
mov ecx, dword [ebp + 8]
call fcn.004055c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x401c]
call fcn.00405620
lea ecx, [ebp - 0x401c]
call fcn.00405650
cmp eax, 0xffffffff
jne 0x49e160
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.00405600
mov eax, dword [ebp - 0x8078]
jmp 0x49e3a5
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 0x49e1d3
lea ecx, [ebp - 0x4054]
push ecx
call fcn.0049b0f0
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.00405600
mov eax, dword [ebp - 0x807c]
jmp 0x49e3a5
cmp dword [ebp - 0x4050], 0
jne 0x49e1e1
jmp 0x49e356
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.0049b780
add esp, 8
mov dword [ebp - 0x4018], eax
mov eax, dword [ebp - 0x4018]
mov dword [ebp - 0x8090], eax
cmp dword [ebp - 0x8090], 2
je 0x49e243
cmp dword [ebp - 0x8090], 0xfffffffb
jbe 0x49e285
cmp dword [ebp - 0x8090], 0xfffffffd
jbe 0x49e24d
jmp 0x49e285
mov dword [ebp - 0x4018], 0xfffffffd
lea ecx, [ebp - 0x4054]
push ecx
call fcn.0049b0f0
add esp, 4
mov edx, dword [ebp - 0x4018]
mov dword [ebp - 0x8080], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x401c]
call fcn.00405600
mov eax, dword [ebp - 0x8080]
jmp 0x49e3a5
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.00405650
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x405c], eax
cmp dword [ebp - 0x405c], 0
je 0x49e2e6
mov ecx, dword [ebp - 0x806c]
cmp ecx, dword [ebp - 0x4058]
je 0x49e33c
cmp dword [ebp - 0x405c], 0
jne 0x49e2fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x405c], eax
jmp 0x49e307
mov dword [ebp - 0x405c], 0xffffffff
lea edx, [ebp - 0x4054]
push edx
call fcn.0049b0f0
add esp, 4
mov eax, dword [ebp - 0x405c]
mov dword [ebp - 0x8084], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x401c]
call fcn.00405600
mov eax, dword [ebp - 0x8084]
jmp 0x49e3a5
cmp dword [ebp - 0x4044], 0
je 0x49e1ed
cmp dword [ebp - 0x4018], 1
jne 0x49e160
lea ecx, [ebp - 0x4054]
push ecx
call fcn.0049b0f0
add esp, 4
lea ecx, [ebp - 0x401c]
call fcn.00405650
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.00405600
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.00466e81
mov esp, ebp
pop ebp
ret 8