Function at 0x49a4a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e84e
mov eax, dword fs:[0]
push eax
sub esp, 0x334
mov eax, dword [0x5c7cec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x264], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x278], edi
mov dword [ebp - 0x268], ebx
test edi, edi
je 0x49a7bf
mov esi, dword [ebp + 0x14]
cmp esi, 4
ja 0x49a7bf
push 0x200
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.005290f0
push esi
push str._ZoneTransfer__r_nZoneId_u_r_n
lea eax, [ebp - 0x210]
push 0x200
push eax
call fcn.0049ad20
add esp, 0x1c
test eax, eax
js 0x49a7bf
push 0x573c70
push dword [ebp - 0x264]
lea eax, [ebp - 0x25c]
mov dword [edi], ebx
push eax
call fcn.0043cca0
add esp, 0xc
cmp dword [ebp - 0x248], 8
lea eax, [ebp - 0x25c]
push ebx
cmovae eax, dword [ebp - 0x25c]
push ebx
push 2
push ebx
push 1
push 0x40000000
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x264], esi
xor eax, eax
test edi, edi
je 0x49a5da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x268], eax
cmp edi, 0xffffffff
jne 0x49a5ac
mov dword [ebp - 0x270], esi
xor edi, edi
jmp 0x49a5c5
mov esi, edi
mov dword [ebp - 0x264], esi
call fcn.00411f30
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x270], edi
push eax
mov dword [ebp - 0x26c], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x270]
mov eax, edi
test ecx, ecx
je 0x49a773
cmp eax, 0xffffffff
je 0x49a773
xor eax, eax
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 7
mov word [ebp - 0x244], ax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], 7
mov word [ebp - 0x22c], ax
lea eax, [ebp - 0x244]
mov byte [ebp - 4], 4
push eax
push dword [ebp - 0x274]
call fcn.0043eae0
add esp, 8
test al, al
je 0x49a6c3
lea eax, [ebp - 0x22c]
push eax
push esi
call fcn.0043eae0
add esp, 8
test al, al
je 0x49a6c3
cmp dword [ebp - 0x234], 0
je 0x49a6c3
cmp dword [ebp - 0x21c], 0
je 0x49a6c3
push 0x573c70
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.0043cca0
add esp, 0xc
mov ecx, eax
cmp dword [ecx + 0x14], 8
mov ebx, 1
mov byte [ebp - 4], 5
mov dword [ebp - 0x268], ebx
jb 0x49a69a
mov ecx, dword [ecx]
cmp dword [ebp - 0x218], 8
lea eax, [ebp - 0x22c]
push ecx
cmovae eax, dword [ebp - 0x22c]
push eax
call fcn.0040b363
add esp, 8
mov byte [ebp - 0x25d], 0
test eax, eax
je 0x49a6ca
mov byte [ebp - 0x25d], 1
mov dword [ebp - 4], 4
test bl, 1
je 0x49a6e4
lea ecx, [ebp - 0x290]
and ebx, 0xfffffffe
call fcn.00408e50
cmp byte [ebp - 0x25d], 0
jne 0x49a754
lea edi, [ebp - 0x210]
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x49a6f6
push 0
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0
push eax
sub edi, ecx
lea eax, [ebp - 0x210]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x49a754
cmp dword [ebp - 0x214], edi
jne 0x49a754
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov edi, esi
xor esi, esi
mov dword [ebp - 0x264], esi
call fcn.00411f30
mov eax, dword [ebp - 0x278]
mov byte [ebp - 0x25d], 1
mov dword [eax], edi
jmp 0x49a75b
mov byte [ebp - 0x25d], 0
lea ecx, [ebp - 0x22c]
call fcn.00408e50
lea ecx, [ebp - 0x244]
call fcn.00408e50
jmp 0x49a77a
mov byte [ebp - 0x25d], 0
mov byte [ebp - 4], 8
test esi, esi
je 0x49a7ac
cmp esi, 0xffffffff
je 0x49a7ac
call fcn.00411f30
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x49a7ac
call fcn.004013a0
test bl, 0x20
je 0x49a7ac
lea ecx, [ebp - 0x340]
call fcn.0048d350
lea ecx, [ebp - 0x25c]
call fcn.00408e50
mov al, byte [ebp - 0x25d]
jmp 0x49a7c1
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040154f
mov esp, ebp
pop ebp
ret