Function at 0x414a60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x440
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x10cc07c]
mov ebp, dword [eax + 0xe4]
push edi
mov edi, dword [eax + 0xe0]
mov eax, dword [esi + 0x10cc080]
mov ecx, dword [eax + 0xe0]
mov eax, dword [eax + 0xe4]
cmp ebp, eax
jg 0x414ab2
jl 0x414aa0
cmp edi, ecx
jae 0x414ab2
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x414ace
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov ebp, eax
mov eax, dword [esp + 0x14]
mov edi, ecx
mov ecx, dword [esp + 0x10]
cmp edi, ecx
jne 0x414ada
cmp ebp, eax
je 0x414c91
sub ecx, edi
sbb eax, ebp
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x10cbbb4]
mov dword [esp + 0x20], ecx
fild qword [esp + 0x20]
lea ebx, [esi + 0x10cbbb4]
push 0xcc
mov dword [esp + 0x34], 0
fstp qword [esp + 0x44]
mov dword [esp + 0x30], eax
call fcn.00416f80
mov ecx, dword [esi + 0x1097a10]
add esp, 4
push eax
push 2
push 0x400
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
fldz
push ecx
fstp dword [esp]
mov ecx, dword [esi + 0x10cc078]
push ebx
lea ebx, [esi + 0x10969f8]
push ebx
call fcn.00402280
push 0
push 0x20
push 3
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x34], ebx
je 0x414c71
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp ebp, dword [esp + 0x14]
mov dword [esp + 0x20], edi
jg 0x414c56
jl 0x414b8d
cmp edi, dword [esp + 0x10]
jae 0x414c56
xor edi, edi
cmp dword [esp + 0x2c], edi
jle 0x414bc6
lea ebx, [esi + 0x10cbc38]
mov eax, dword [ebx]
mov ecx, dword [esp + 0x20]
sub eax, 1
push eax
push ebp
push ecx
mov ecx, dword [esi + 0x10cc078]
call fcn.004018f0
fstp dword [esp + edi*4 + 0x50]
add edi, 1
add ebx, 4
cmp edi, dword [esp + 0x2c]
jl 0x414b9b
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
push 0
add eax, eax
lea edx, [esp + 0x50]
push edx
add eax, eax
push eax
lea eax, [esp + 0x5c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x20]
sub ecx, dword [esp + 0x18]
mov edx, ebp
sbb edx, dword [esp + 0x1c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
fild qword [esp + 0x38]
fdiv qword [esp + 0x40]
fmul qword [0x43d7d0]
call fcn.00423f00
mov edi, eax
cmp edi, dword [esp + 0x30]
je 0x414c2c
mov eax, dword [esi + 0x1097a10]
push edi
push 1
push 0x400
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x30], edi
add dword [esp + 0x20], 1
adc ebp, 0
cmp ebp, dword [esp + 0x14]
jl 0x414b8d
jg 0x414c4e
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x20], ecx
jb 0x414b8d
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
push ebp
push edi
push ebx
mov ecx, esi
call fcn.004130e0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x1097a30], 1
mov edx, dword [esi + 0x1097a10]
push 0x64
push 1
push 0x400
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi + 0x1097a10], 0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret