Function at 0x4a29d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a9f3
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x553948]
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 + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp + 0x10]
xor edi, edi
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], edi
cmp eax, edi
je 0x4a2c54
push str.:Zone.Identifier
push ecx
lea ecx, [ebp - 0x48]
push ecx
mov dword [eax], edi
call fcn.0042b920
add esp, 0xc
cmp dword [ebp - 0x38], 0x104
mov dword [ebp - 4], edi
jb 0x4a2a5e
cmp dword [ebp - 0x34], 8
jb 0x4a2c54
mov edx, dword [ebp - 0x48]
push edx
call fcn.00406fa9
add esp, 4
jmp 0x4a2c54
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x4a2a6a
lea eax, [ebp - 0x48]
push edi
push edi
push 2
push edi
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor ebx, ebx
mov dword [ebp - 0xa4], ebx
cmp esi, edi
je 0x4a2ab0
lea ecx, [ebp - 0xa4]
call fcn.00417480
cmp esi, 0xffffffff
je 0x4a2aaa
mov ebx, esi
mov dword [ebp - 0xa4], ebx
call fcn.00416dd0
jmp 0x4a2ab0
mov ebx, dword [ebp - 0xa4]
cmp ebx, edi
je 0x4a2ab9
cmp ebx, 0xffffffff
jne 0x4a2ae3
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0
call fcn.00417480
cmp dword [ebp - 0x34], 8
jb 0x4a2c54
mov eax, dword [ebp - 0x48]
push eax
call fcn.00406fa9
add esp, 4
jmp 0x4a2c54
mov eax, 7
xor ecx, ecx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x70], edi
mov word [ebp - 0x80], cx
xor edx, edx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], dx
mov ecx, dword [ebp - 0xb4]
lea eax, [ebp - 0x80]
push eax
push ecx
mov byte [ebp - 4], 3
call fcn.0042d6d0
add esp, 8
test al, al
je 0x4a2b84
lea edx, [ebp - 0x64]
push edx
push ebx
call fcn.0042d6d0
add esp, 8
test al, al
je 0x4a2b84
cmp dword [ebp - 0x70], edi
je 0x4a2b84
cmp dword [ebp - 0x54], edi
je 0x4a2b84
push str.:Zone.Identifier
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x9c]
push ecx
call fcn.0042b920
mov ecx, 8
add esp, 0xc
mov dword [ebp - 0xac], 1
cmp dword [eax + 0x14], ecx
jb 0x4a2b64
mov eax, dword [eax]
cmp dword [ebp - 0x50], ecx
mov ecx, dword [ebp - 0x64]
jae 0x4a2b6f
lea ecx, [ebp - 0x64]
push eax
push ecx
call fcn.00408866
add esp, 8
mov byte [ebp - 0x9d], 0
test eax, eax
je 0x4a2b8b
mov byte [ebp - 0x9d], 1
test byte [ebp - 0xac], 1
je 0x4a2b9f
lea ecx, [ebp - 0x9c]
call fcn.0040a440
cmp byte [ebp - 0x9d], 0
jne 0x4a2c2d
mov ecx, 6
mov esi, str._ZoneTransfer__r_nZoneId3_r_n
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor esi, esi
push esi
lea edx, [ebp - 0xa8]
push edx
push 0x1a
lea eax, [ebp - 0x2c]
push eax
push ebx
mov dword [ebp - 0xa8], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4a2c2d
cmp dword [ebp - 0xa8], 0x1a
jne 0x4a2c2d
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [ebp - 0xa4], esi
call fcn.00416dd0
mov ecx, dword [ebp - 0xb0]
mov dword [ecx], ebx
lea ecx, [ebp - 0x64]
call fcn.0040a440
lea ecx, [ebp - 0x80]
call fcn.0040a440
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0
call fcn.00417480
lea ecx, [ebp - 0x48]
call fcn.0040a440
mov al, 1
jmp 0x4a2c56
lea ecx, [ebp - 0x64]
call fcn.0040a440
lea ecx, [ebp - 0x80]
call fcn.0040a440
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0
call fcn.00417480
lea ecx, [ebp - 0x48]
call fcn.0040a440
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.00401316
mov esp, ebp
pop ebp
ret