Function at 0x47af30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523b9e
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x579630]
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 - 0x270], eax
mov dword [ebp - 0x26c], edi
mov dword [ebp - 0x268], ebx
test edi, edi
jne 0x47af8c
xor al, al
jmp 0x47b201
mov esi, dword [ebp + 0x14]
cmp esi, 4
ja 0x47af85
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004f9050
push esi
push str._ZoneTransfer__r_nZoneId_u_r_n
lea eax, [ebp - 0x210]
push 0x200
push eax
call fcn.0047b5e0
add esp, 0x1c
test eax, eax
js 0x47af85
push 0x534400
push dword [ebp - 0x264]
lea eax, [ebp - 0x25c]
mov dword [edi], ebx
push eax
call fcn.0042e6e0
add esp, 0xc
cmp dword [ebp - 0x248], 8
lea eax, [ebp - 0x25c]
push 0
cmovae eax, dword [ebp - 0x25c]
push 0
push 2
push 0
push 1
push 0x40000000
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor edi, edi
mov dword [ebp - 0x264], edi
test esi, esi
je 0x47b04b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x268], eax
cmp esi, 0xffffffff
je 0x47b044
mov edi, esi
mov dword [ebp - 0x264], edi
call fcn.00410f80
mov eax, dword [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x47b1d7
cmp edi, 0xffffffff
je 0x47b1d7
xor eax, eax
mov dword [ebp - 0x230], 7
mov dword [ebp - 0x234], 0
mov word [ebp - 0x244], ax
mov dword [ebp - 0x218], 7
mov dword [ebp - 0x21c], eax
mov word [ebp - 0x22c], ax
lea eax, [ebp - 0x244]
mov byte [ebp - 4], 3
push eax
push dword [ebp - 0x270]
call fcn.00430460
add esp, 8
test al, al
je 0x47b134
lea eax, [ebp - 0x22c]
push eax
push edi
call fcn.00430460
add esp, 8
test al, al
je 0x47b134
cmp dword [ebp - 0x234], 0
je 0x47b134
cmp dword [ebp - 0x21c], 0
je 0x47b134
push 0x534400
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x288]
push eax
call fcn.0042e6e0
add esp, 0xc
mov ecx, eax
cmp dword [ecx + 0x14], 8
mov ebx, 1
mov byte [ebp - 4], 4
mov dword [ebp - 0x268], ebx
jb 0x47b10b
mov ecx, dword [ecx]
cmp dword [ebp - 0x218], 8
lea eax, [ebp - 0x22c]
push ecx
cmovae eax, dword [ebp - 0x22c]
push eax
call fcn.00409df7
add esp, 8
mov byte [ebp - 0x25d], 0
test eax, eax
je 0x47b13b
mov byte [ebp - 0x25d], 1
mov dword [ebp - 4], 3
test bl, 1
je 0x47b152
lea ecx, [ebp - 0x288]
call fcn.004087d0
cmp byte [ebp - 0x25d], 0
jne 0x47b1bd
lea esi, [ebp - 0x210]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x47b164
push 0
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0
push eax
sub esi, ecx
lea eax, [ebp - 0x210]
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x47b1bd
cmp dword [ebp - 0x214], esi
jne 0x47b1bd
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [ebp - 0x264], 0
call fcn.00410f80
mov eax, dword [ebp - 0x26c]
mov bl, 1
mov dword [eax], edi
jmp 0x47b1bf
xor bl, bl
lea ecx, [ebp - 0x22c]
call fcn.004087d0
lea ecx, [ebp - 0x244]
call fcn.004087d0
jmp 0x47b1d9
xor bl, bl
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 0
call fcn.00418d10
cmp dword [ebp - 0x248], 8
jb 0x47b1ff
push dword [ebp - 0x25c]
call fcn.004085be
add esp, 4
mov al, bl
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.00401590
mov esp, ebp
pop ebp
ret