Function at 0x479b08
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x479ea0
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0xffffff9b
cmp byte [0x486c24], 0
je 0x479e84
fild qword [0x486c3f]
fdivr dword [0x479eb4]
fstp qword [ebp - 0x40]
wait
xor eax, eax
mov dword [ebp - 0x44], eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
xor eax, eax
call fcn.00479798
mov eax, dword [0x4852e4]
mov eax, dword [eax]
call fcn.00473568
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x58], 0xffffffff
mov dword [ebp - 0x54], 0
cmp dword [0x486c43], 0
jne 0x479ba7
cmp dword [0x486c3f], 0x100000
jbe 0x479bb7
jmp 0x479ba9
jle 0x479bb7
mov dword [ebp - 0x58], 0x800
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
xor eax, eax
mov dword [ebp - 0x6c], eax
xor eax, eax
mov dword [ebp - 0x68], eax
xor eax, eax
mov dword [ebp - 0x64], eax
xor eax, eax
mov dword [ebp - 0x60], eax
xor eax, eax
mov dword [ebp - 0x5c], eax
movzx eax, word [0x486c3d]
imul edi
push eax
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x47968c]
call fcn.00405acc
add esp, 4
movzx edx, word [0x486c3d]
imul edx, edi
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 8]
call fcn.004796b4
mov ebx, eax
mov eax, edi
cdq
push edx
push eax
mov eax, dword [0x486c3f]
mov edx, dword [0x486c43]
call fcn.00405664
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0
jmp 0x479d2b
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x479c77
cmp ebx, dword [ebp - 0x10]
je 0x479c81
mov ebx, 0xffffff9a
jmp 0x479e84
mov eax, ebx
xor edx, edx
add dword [ebp - 0x38], eax
adc dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x38]
shl eax, 0x20
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x34]
xor edx, edx
mov dword [ebp - 0x60], eax
mov eax, edi
cdq
add dword [ebp - 0x30], eax
adc dword [ebp - 0x2c], edx
mov eax, edi
cdq
add dword [ebp - 0x50], eax
adc dword [ebp - 0x4c], edx
fild qword [ebp - 0x30]
fmul qword [ebp - 0x40]
call fcn.00402b50
mov esi, eax
cmp esi, dword [ebp - 0x44]
jg 0x479cd4
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
cmp edx, dword [ebp - 0x54]
jne 0x479cd2
cmp eax, dword [ebp - 0x58]
jbe 0x479d04
jmp 0x479cd4
jle 0x479d04
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.00479798
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov eax, dword [0x4852e4]
mov eax, dword [eax]
call fcn.00473568
cmp byte [0x486c48], 0
je 0x479d17
mov ebx, 0xffffff99
jmp 0x479e84
mov eax, dword [0x4852e4]
mov eax, dword [eax]
call fcn.00473568
add dword [ebp - 0x20], 1
adc dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x24]
jne 0x479d41
cmp eax, dword [ebp - 0x28]
jbe 0x479c52
jmp 0x479d47
jle 0x479c52
sub dword [ebp - 0x20], 1
sbb dword [ebp - 0x1c], 0
mov eax, edi
cdq
push edx
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
call fcn.00405640
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
cmp edx, dword [0x486c43]
jne 0x479d81
cmp eax, dword [0x486c3f]
jae 0x479e6a
jmp 0x479d87
jge 0x479e6a
movzx eax, word [0x486c3d]
push eax
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x47968c]
call fcn.00405acc
add esp, 4
movzx edx, word [0x486c3d]
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 8]
call fcn.004796b4
mov ebx, eax
jmp 0x479e48
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x479de3
cmp ebx, dword [ebp - 0x10]
je 0x479ded
mov ebx, 0xffffff9a
jmp 0x479e84
mov eax, ebx
xor edx, edx
add dword [ebp - 0x38], eax
adc dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x38]
shl eax, 0x20
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x34]
xor edx, edx
mov dword [ebp - 0x60], eax
cmp byte [0x486c48], 0
je 0x479e18
mov ebx, 0xffffff99
jmp 0x479e84
push dword [0x486c43]
push dword [0x486c3f]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
mov eax, 0x64
call fcn.00479798
mov eax, dword [0x4852e4]
mov eax, dword [eax]
call fcn.00473568
add dword [ebp - 0x20], 1
adc dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
cmp edx, dword [0x486c43]
jne 0x479e64
cmp eax, dword [0x486c3f]
jb 0x479dbe
jmp 0x479e6a
jl 0x479dbe
push 0
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x47968c]
call fcn.00405acc
add esp, 4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479ea7
lea eax, [ebp - 0x14]
mov edx, dword [0x47968c]
call fcn.00405ad8
ret