Function at 0x478c14
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x478c1c
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x4790ae
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x70ff5c], 0
je 0x479079
lea eax, [ebp - 8]
xor edx, edx
call fcn.004050c0
call fcn.0040aab8
fstp qword [0x70ff68]
wait
push dword [ebp - 8]
push 0x4790c4
push dword [0x70ff64]
push dword [0x70ff60]
lea edx, [ebp - 0x10]
mov eax, 0x4790f8
call fcn.0040b760
push dword [ebp - 0x10]
push 0x479114
lea eax, [ebp - 8]
mov edx, 4
call fcn.00404df4
push dword [ebp - 8]
push 0x479120
push dword [0x70ff6c]
push dword [0x70ff68]
lea edx, [ebp - 0x14]
mov eax, 0x4790f8
call fcn.0040b760
push dword [ebp - 0x14]
push 0x479114
lea eax, [ebp - 8]
mov edx, 4
call fcn.00404df4
push dword [ebp - 8]
push 0x479154
mov eax, dword [0x70ff70]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x18]
call fcn.00408dac
push dword [ebp - 0x18]
push 0x479114
lea eax, [ebp - 8]
mov edx, 4
call fcn.00404df4
push dword [ebp - 8]
push 0x479188
mov eax, dword [0x70ff74]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1c]
call fcn.00408dac
push dword [ebp - 0x1c]
push 0x479114
lea eax, [ebp - 8]
mov edx, 4
call fcn.00404df4
push dword [ebp - 8]
push 0x4791bc
mov eax, dword [0x70ff78]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00408dac
push dword [ebp - 0x20]
push 0x479114
lea eax, [ebp - 8]
mov edx, 4
call fcn.00404df4
push dword [ebp - 8]
push 0x4791f0
mov eax, dword [0x70ff7c]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x24]
call fcn.00408dac
push dword [ebp - 0x24]
push 0x479114
lea eax, [ebp - 8]
mov edx, 4
call fcn.00404df4
push dword [ebp - 8]
push 0x479224
mov eax, dword [0x70ff80]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x28]
call fcn.00408dac
push dword [ebp - 0x28]
push 0x479114
lea eax, [ebp - 8]
mov edx, 4
call fcn.00404df4
push dword [ebp - 8]
push 0x479258
mov eax, dword [0x70ff84]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x2c]
call fcn.00408dac
push dword [ebp - 0x2c]
push 0x479114
lea eax, [ebp - 8]
mov edx, 4
call fcn.00404df4
xor esi, esi
mov ebx, 0x70ffd8
mov edi, 0x70ff88
cmp dword [ebx], 0
jbe 0x478ea4
push dword [ebp - 8]
push 0x47928c
lea eax, [ebp - 0x30]
push eax
lea eax, [esi + 1]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
lea edx, [ebp - 0x38]
xor ecx, ecx
mov eax, 0x4792b4
call fcn.00409ae8
push dword [ebp - 0x30]
push 0x4792c4
mov eax, dword [ebx]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x3c]
call fcn.00408dac
push dword [ebp - 0x3c]
push 0x479114
push 0x4792d8
lea eax, [ebp - 0x40]
push eax
lea eax, [esi + 1]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
lea edx, [ebp - 0x38]
xor ecx, ecx
mov eax, 0x4792b4
call fcn.00409ae8
push dword [ebp - 0x40]
push 0x4792f8
mov eax, dword [ebx]
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x34], eax
fild qword [ebp - 0x38]
fdivr qword [edi]
fmul dword [0x47930c]
fmul dword [0x479310]
add esp, 0xfffffff8
fistp qword [esp]
wait
lea edx, [ebp - 0x44]
mov eax, 0x47931c
call fcn.0040a570
push dword [ebp - 0x44]
push 0x479328
push 0x479114
lea eax, [ebp - 8]
mov edx, 0xc
call fcn.00404df4
jmp 0x478f23
push dword [ebp - 8]
push 0x47928c
lea eax, [ebp - 0x48]
push eax
lea eax, [esi + 1]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
lea edx, [ebp - 0x38]
xor ecx, ecx
mov eax, 0x4792b4
call fcn.00409ae8
push dword [ebp - 0x48]
push 0x4792c4
mov eax, dword [ebx]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x4c]
call fcn.00408dac
push dword [ebp - 0x4c]
push 0x479114
push 0x4792d8
lea eax, [ebp - 0x50]
push eax
lea eax, [esi + 1]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
lea edx, [ebp - 0x38]
xor ecx, ecx
mov eax, 0x4792b4
call fcn.00409ae8
push dword [ebp - 0x50]
push 0x479334
push 0x479114
lea eax, [ebp - 8]
mov edx, 0xa
call fcn.00404df4
inc esi
add edi, 8
add ebx, 4
cmp esi, 0xa
jne 0x478de3
lea edx, [ebp - 4]
mov eax, dword [0x4603c0]
call fcn.004607e8
mov edx, dword [ebp - 4]
mov eax, 0x479350
call fcn.00405078
test eax, eax
jle 0x478f8e
mov al, byte [0x479358]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x58]
push eax
mov ecx, 0x479350
mov edx, 0x479364
mov eax, dword [0x47827c]
call fcn.004782e0
mov ecx, dword [ebp - 0x58]
mov edx, 0x479350
mov eax, dword [ebp - 4]
call fcn.0040dd8c
mov edx, dword [ebp - 0x54]
lea eax, [ebp - 4]
call fcn.00404b0c
mov edx, dword [ebp - 4]
mov eax, 0x479374
call fcn.00405078
test eax, eax
jle 0x478fdc
mov al, byte [0x479358]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x60]
push eax
mov ecx, 0x479374
mov edx, 0x479388
mov eax, dword [0x47827c]
call fcn.004782e0
mov ecx, dword [ebp - 0x60]
mov edx, 0x479374
mov eax, dword [ebp - 4]
call fcn.0040dd8c
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 4]
call fcn.00404b0c
mov edx, dword [ebp - 4]
mov eax, 0x479398
call fcn.00405078
test eax, eax
jle 0x47902a
mov al, byte [0x479358]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x68]
push eax
mov ecx, 0x479398
mov edx, 0x4793b0
mov eax, dword [0x47827c]
call fcn.004782e0
mov ecx, dword [ebp - 0x68]
mov edx, 0x479398
mov eax, dword [ebp - 4]
call fcn.0040dd8c
mov edx, dword [ebp - 0x64]
lea eax, [ebp - 4]
call fcn.00404b0c
push 0
push 0x20
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.00404f34
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x479072
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404d34
push eax
lea eax, [ebp - 8]
call fcn.00404f8c
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle_1
mov byte [0x70ff5c], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4790b5
lea eax, [ebp - 0x68]
mov edx, 0xc
call fcn.00404a98
lea eax, [ebp - 0x30]
mov edx, 9
call fcn.00404a98
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404a98
ret