Function at 0x4705f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60fcfb
mov eax, dword fs:[0]
push eax
mov eax, 0x2058
call fcn.005d11a0
mov eax, dword [0x69f000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x28]
mov dword [ebp - 0x2048], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x205c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2058], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x2054], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x2050], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x204c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x2044], eax
mov eax, dword [ebp + 8]
cmp dword [edi + 0x64], eax
jg 0x470892
mov eax, dword [edi + 0x90]
test eax, eax
je 0x470892
mov eax, dword [eax]
test eax, eax
je 0x470892
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x470892
mov ecx, dword [edi + 0xb8]
sub ecx, dword [edi + 0xb0]
mov eax, dword [edi + 0xbc]
sbb eax, dword [edi + 0xb4]
js 0x4706e2
jg 0x4706be
cmp ecx, 0xe10
jb 0x4706e2
push ecx
mov ecx, edi
call fcn.00472120
test al, al
je 0x4706e2
mov eax, dword [edi + 0xb8]
mov ecx, dword [edi + 0xbc]
mov dword [edi + 0xb0], eax
mov dword [edi + 0xb4], ecx
xorps xmm0, xmm0
mov dword [ebp - 0x2018], 0
xor eax, eax
mov dword [ebp - 0x2014], 7
movups xmmword [ebp - 0x2028], xmm0
mov word [ebp - 0x2028], ax
mov dword [ebp - 4], eax
test esi, esi
jne 0x470718
mov eax, dword [ebp - 0x2044]
jmp 0x470747
push esi
push 0
push dword [ebp - 0x2044]
lea eax, [ebp - 0x2010]
push 0xffffffffffffffff
push 0xfff
push eax
call fcn.00417c60
push dword [eax + 4]
push dword [eax]
call fcn.005dd615
add esp, 0x20
lea eax, [ebp - 0x2010]
lea ecx, [ebp - 0x2028]
push ecx
push eax
push dword [ebp - 0x204c]
mov ecx, edi
push dword [ebp - 0x2050]
push dword [ebp - 0x2054]
push dword [ebp - 0x2058]
push dword [ebp - 0x205c]
push dword [ebp - 0x2048]
push dword [ebp + 8]
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
call fcn.00470040
cmp dword [edi + 0x8c], 0
jne 0x470859
xorps xmm0, xmm0
mov dword [ebp - 0x2030], 0
movups xmmword [ebp - 0x2040], xmm0
mov dword [ebp - 0x202c], 0xf
mov byte [ebp - 0x2040], 0
lea edx, [ebp - 0x2040]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2028]
call fcn.00471ab0
cmp dword [ebp - 0x202c], 0x10
lea eax, [ebp - 0x2040]
cmovae eax, dword [ebp - 0x2040]
mov esi, eax
mov dword [ebp - 0x2048], eax
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4707f0
push 2
push 0
push 0
push dword [edi + 0x68]
sub esi, ecx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
lea eax, [ebp - 0x2044]
mov dword [ebp - 0x2044], 0
push eax
push esi
push dword [ebp - 0x2048]
mov esi, dword [sym.imp.KERNEL32.DLL_WriteFile]
push dword [edi + 0x68]
call esi
push 0
lea eax, [ebp - 0x2044]
mov dword [ebp - 0x2044], 0
push eax
push 2
push 0x670634
push dword [edi + 0x68]
call esi
lea ecx, [ebp - 0x2040]
call fcn.004124b0
jmp 0x470875
cmp dword [ebp - 0x2014], 8
lea eax, [ebp - 0x2028]
mov ecx, edi
cmovae eax, dword [ebp - 0x2028]
push eax
call fcn.0046fe60
mov eax, dword [edi + 0x90]
test eax, eax
je 0x470887
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
lea ecx, [ebp - 0x2028]
call fcn.0040bd90
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005d077b
mov esp, ebp
pop ebp
ret 0x2c