Function at 0x4147b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x440
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x10cc07c]
mov ebp, dword [eax + 0xe4]
mov ebx, dword [eax + 0xe0]
mov eax, dword [edi + 0x10cc080]
mov ecx, dword [eax + 0xe0]
mov eax, dword [eax + 0xe4]
cmp ebp, eax
lea esi, [edi + 0x10969f8]
mov dword [esp + 0x30], esi
jg 0x41480c
jl 0x4147fa
cmp ebx, ecx
jae 0x41480c
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x414828
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov ebp, eax
mov eax, dword [esp + 0x14]
mov ebx, ecx
mov ecx, dword [esp + 0x10]
cmp ebx, ecx
jne 0x414834
cmp ebp, eax
je 0x414a4b
sub ecx, ebx
sbb eax, ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
fild qword [esp + 0x18]
push 0xcc
mov dword [esp + 0x30], 0
fstp qword [esp + 0x44]
call fcn.00416f80
add esp, 4
push eax
mov eax, dword [edi + 0x1097a10]
push 2
push 0x400
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
fldz
push ecx
fstp dword [esp]
mov ecx, dword [edi + 0x10cc078]
lea eax, [edi + 0x10cbbb4]
push eax
push esi
call fcn.00402280
push 0
push 0x20
push 3
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x34], esi
jne 0x4148d4
mov ecx, dword [edi + 0x1097a10]
push 0x64
push 1
push 0x400
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [edi + 0x1097a10], 0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp ebp, dword [esp + 0x14]
mov edx, dword [edi + 0x10cbbb4]
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], ebx
jg 0x4149fa
jl 0x414905
cmp ebx, dword [esp + 0x10]
jae 0x4149fa
xor ebx, ebx
cmp dword [esp + 0x28], ebx
jle 0x41496a
lea esi, [edi + 0x10cbbb8]
mov eax, dword [esi + 0x80]
mov ecx, dword [esp + 0x18]
sub eax, 1
push eax
push ebp
push ecx
mov ecx, dword [edi + 0x10cc078]
call fcn.004018f0
fimul dword [esi]
mov edx, dword [esi + 0x84]
mov eax, dword [esp + 0x18]
mov ecx, dword [edi + 0x10cc078]
sub edx, 1
push edx
push ebp
push eax
fstp dword [esp + ebx*4 + 0x5c]
call fcn.004018f0
fimul dword [esi + 4]
add ebx, 1
add esi, 8
cmp ebx, dword [esp + 0x28]
fadd dword [esp + ebx*4 + 0x4c]
fstp dword [esp + ebx*4 + 0x4c]
jl 0x414913
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
push 0
lea ecx, [esp + 0x50]
push ecx
add eax, eax
add eax, eax
push eax
lea edx, [esp + 0x5c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x20]
mov ecx, ebp
sbb ecx, dword [esp + 0x24]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
fild qword [esp + 0x38]
fdiv qword [esp + 0x40]
fmul qword [0x43d7d0]
call fcn.00423f00
mov ebx, eax
cmp ebx, dword [esp + 0x2c]
je 0x4149d0
mov edx, dword [edi + 0x1097a10]
push ebx
push 1
push 0x400
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x2c], ebx
add dword [esp + 0x18], 1
adc ebp, 0
cmp ebp, dword [esp + 0x14]
jl 0x414905
jg 0x4149f2
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x18], eax
jb 0x414905
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
push ebp
push ebx
push esi
mov ecx, edi
call fcn.004130e0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi + 0x1097a10]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x64
push 1
push 0x400
push ecx
mov dword [edi + 0x1097a30], 1
call esi
mov edx, dword [esp + 0x30]
push edx
push 1
mov dword [edi + 0x1097a10], 0
mov eax, dword [0x454174]
push 0x400
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret