Function at 0x470bc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60fe3d
mov eax, dword fs:[0]
push eax
mov eax, 0x10a0
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 + 0x20]
mov dword [ebp - 0x1090], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10a4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10a0], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x109c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x1094], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x108c], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x1098], eax
mov eax, dword [ebp + 8]
cmp dword [edi + 0x64], eax
jg 0x470fd4
mov eax, dword [edi + 0x90]
test eax, eax
je 0x470fd4
mov eax, dword [eax]
test eax, eax
je 0x470fd4
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x470fd4
mov ecx, dword [edi + 0xb8]
sub ecx, dword [edi + 0xb0]
mov eax, dword [edi + 0xbc]
sbb eax, dword [edi + 0xb4]
js 0x470cb2
jg 0x470c8e
cmp ecx, 0xe10
jb 0x470cb2
push ecx
mov ecx, edi
call fcn.00472120
test al, al
je 0x470cb2
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 - 0x1060], 0
xor eax, eax
mov dword [ebp - 0x105c], 7
movups xmmword [ebp - 0x1070], xmm0
mov word [ebp - 0x1070], ax
mov dword [ebp - 4], eax
movups xmmword [ebp - 0x1058], xmm0
mov dword [ebp - 0x1048], eax
mov dword [ebp - 0x1044], 7
mov word [ebp - 0x1058], ax
movups xmmword [ebp - 0x1040], xmm0
mov dword [ebp - 0x1030], eax
mov dword [ebp - 0x102c], 7
mov word [ebp - 0x1040], ax
movups xmmword [ebp - 0x1088], xmm0
mov dword [ebp - 0x1078], eax
mov dword [ebp - 0x1074], 7
mov word [ebp - 0x1088], ax
mov eax, dword [ebp - 0x1094]
mov byte [ebp - 4], 3
test eax, eax
je 0x470d76
push eax
lea ecx, [ebp - 0x1028]
call fcn.00411ec0
lea edx, [ebp - 0x1070]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1028]
call fcn.00471b50
lea ecx, [ebp - 0x1028]
mov byte [ebp - 4], 3
call fcn.004124b0
jmp 0x470d88
push 0
push 0x65fe6c
lea ecx, [ebp - 0x1070]
call fcn.0040be20
test esi, esi
je 0x470dbe
push esi
lea ecx, [ebp - 0x1028]
call fcn.00411ec0
lea edx, [ebp - 0x1058]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1028]
call fcn.00471b50
lea ecx, [ebp - 0x1028]
mov byte [ebp - 4], 3
call fcn.004124b0
jmp 0x470dd0
push 0
push 0x65fe6c
lea ecx, [ebp - 0x1058]
call fcn.0040be20
mov eax, dword [ebp - 0x1098]
test eax, eax
jne 0x470de2
mov eax, dword [ebp - 0x108c]
jmp 0x470e11
push eax
push 0
push dword [ebp - 0x108c]
lea eax, [ebp - 0x1010]
push 0xffffffffffffffff
push 0xfff
push eax
call fcn.00417c60
push dword [eax + 4]
push dword [eax]
call fcn.005dd5d1
add esp, 0x20
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1028]
call fcn.00411ec0
lea edx, [ebp - 0x1088]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1028]
call fcn.00471b50
lea ecx, [ebp - 0x1028]
mov byte [ebp - 4], 3
call fcn.004124b0
cmp dword [ebp - 0x1074], 8
lea edx, [ebp - 0x1088]
lea ecx, [ebp - 0x1058]
cmovae edx, dword [ebp - 0x1088]
lea esi, [ebp - 0x1040]
cmp dword [ebp - 0x1044], 8
lea eax, [ebp - 0x1070]
push esi
cmovae ecx, dword [ebp - 0x1058]
cmp dword [ebp - 0x105c], 8
push edx
cmovae eax, dword [ebp - 0x1070]
push ecx
push eax
push dword [ebp - 0x109c]
mov ecx, edi
push dword [ebp - 0x10a0]
push dword [ebp - 0x10a4]
push dword [ebp - 0x1090]
push dword [ebp + 8]
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
call fcn.00470040
cmp dword [edi + 0x8c], 0
jne 0x470f7a
xorps xmm0, xmm0
mov dword [ebp - 0x1018], 0
movups xmmword [ebp - 0x1028], xmm0
mov dword [ebp - 0x1014], 0xf
mov byte [ebp - 0x1028], 0
lea edx, [ebp - 0x1028]
mov byte [ebp - 4], 7
mov ecx, esi
call fcn.00471ab0
cmp dword [ebp - 0x1014], 0x10
lea eax, [ebp - 0x1028]
cmovae eax, dword [ebp - 0x1028]
mov esi, eax
mov dword [ebp - 0x1090], eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x470f11
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 - 0x108c]
mov dword [ebp - 0x108c], 0
push eax
push esi
push dword [ebp - 0x1090]
mov esi, dword [sym.imp.KERNEL32.DLL_WriteFile]
push dword [edi + 0x68]
call esi
push 0
lea eax, [ebp - 0x108c]
mov dword [ebp - 0x108c], 0
push eax
push 2
push 0x670634
push dword [edi + 0x68]
call esi
lea ecx, [ebp - 0x1028]
call fcn.004124b0
jmp 0x470f96
cmp dword [ebp - 0x102c], 8
lea eax, [ebp - 0x1040]
mov ecx, edi
cmovae eax, dword [ebp - 0x1040]
push eax
call fcn.0046fe60
mov eax, dword [edi + 0x90]
test eax, eax
je 0x470fa8
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
lea ecx, [ebp - 0x1088]
call fcn.0040bd90
lea ecx, [ebp - 0x1040]
call fcn.0040bd90
lea ecx, [ebp - 0x1058]
call fcn.0040bd90
lea ecx, [ebp - 0x1070]
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