Function at 0x413450
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 edx, dword [esi + 0x10cc080]
mov ecx, dword [edx + 0xe0]
push edi
mov edi, dword [eax + 0xe0]
mov ebx, dword [eax + 0xe4]
mov eax, dword [edx + 0xe4]
cmp ebx, eax
jg 0x4134a2
jl 0x413490
cmp edi, ecx
jae 0x4134a2
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x4134be
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov edi, ecx
mov ecx, dword [esp + 0x10]
mov ebx, eax
mov eax, dword [esp + 0x14]
cmp edi, ecx
jne 0x4134ca
cmp ebx, eax
je 0x413697
sub ecx, edi
sbb eax, ebx
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x10cbbb4]
mov dword [esp + 0x20], ecx
fild qword [esp + 0x20]
lea ebp, [esi + 0x10cbbb4]
push 0xcc
mov dword [esp + 0x30], 0
fstp qword [esp + 0x34]
mov dword [esp + 0x2c], eax
call fcn.004159d0
mov ecx, dword [esi + 0x1097a10]
add esp, 4
push eax
push 2
push 0x400
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x10cc078]
push 0
push ebp
lea ebp, [esi + 0x10969f8]
push ebp
call fcn.00401e50
push 0
push 0x20
push 3
push 0
push 0
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x3c], ebp
je 0x413677
push 2
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp ebx, dword [esp + 0x14]
mov dword [esp + 0x20], edi
jg 0x41365c
jl 0x413579
cmp edi, dword [esp + 0x10]
jae 0x41365c
fld qword [0x4307c8]
fdiv qword [esp + 0x30]
fstp qword [esp + 0x40]
mov eax, dword [esp + 0x28]
xor edi, edi
test eax, eax
jle 0x4135c1
lea ebp, [esi + 0x10cbc38]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x20]
dec eax
push eax
push ebx
push ecx
mov ecx, dword [esi + 0x10cc078]
call fcn.004014c0
fstp dword [esp + edi*4 + 0x50]
mov eax, dword [esp + 0x28]
inc edi
add ebp, 4
cmp edi, eax
jl 0x413597
mov ebp, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
push 0
lea edx, [esp + 0x50]
push edx
shl eax, 2
push eax
lea eax, [esp + 0x5c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
sub ecx, eax
mov edx, ebx
sbb edx, edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
fild qword [esp + 0x30]
fmul qword [esp + 0x40]
fmul qword [0x42f6f0]
call fcn.0041a7f8
mov edi, eax
cmp edi, dword [esp + 0x2c]
je 0x41362a
mov eax, dword [esi + 0x1097a10]
push edi
push 1
push 0x400
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x2c], edi
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
add edx, 1
adc ebx, 0
cmp ebx, eax
mov dword [esp + 0x20], edx
jl 0x413587
jg 0x413654
mov ecx, dword [esp + 0x10]
mov eax, edx
cmp eax, ecx
jb 0x413587
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
push ebx
push edi
push ebp
mov ecx, esi
call fcn.00411a40
push ebp
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