Function at 0x412a53
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edi + 0x10cc07c]
mov ecx, dword [edi + 0x10cc080]
mov edx, dword [eax + 0xe0]
mov eax, dword [eax + 0xe4]
sub esp, 0x440
push ebx
push esi
mov esi, dword [ecx + 0xe0]
mov ecx, dword [ecx + 0xe4]
cmp eax, ecx
jg 0x412a9a
jl 0x412a8c
cmp edx, esi
jae 0x412a9a
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ecx
jmp 0x412aa6
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x412aba
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x14]
je 0x412c80
mov ecx, dword [ebp - 0x18]
xor ebx, ebx
sub ecx, eax
mov eax, dword [ebp - 0x14]
sbb eax, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
fild qword [ebp - 8]
lea esi, [edi + 0x10cbbb4]
mov eax, dword [esi]
push 0xcc
fstp qword [ebp - 0x40]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], eax
call fcn.0041482f
pop ecx
push eax
push 2
push 0x400
push dword [edi + 0x1097a10]
call dword [sym.imp.USER32.dll_SendMessageW]
fldz
push ecx
fstp dword [esp]
lea eax, [edi + 0x10969f8]
push eax
mov eax, esi
mov esi, dword [edi + 0x10cc078]
call fcn.00402d29
push ebx
push 0x20
push 3
push ebx
push ebx
push 0x40000000
lea eax, [edi + 0x10969f8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x412b5a
push 0x64
push 1
push 0x400
push dword [edi + 0x1097a10]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [edi + 0x1097a10], ebx
jmp 0x412c80
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
jg 0x412c4a
jl 0x412b85
cmp ecx, dword [ebp - 0x18]
jae 0x412c4a
cmp dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
jle 0x412bc4
lea eax, [edi + 0x10cbc38]
mov dword [ebp - 0x24], eax
push dword [ebp - 4]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
push dword [ebp - 8]
mov ecx, dword [edi + 0x10cc078]
dec eax
call fcn.004024f3
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x24], 4
fstp dword [ebp + eax*4 - 0x440]
inc eax
cmp eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
jl 0x412b96
push ebx
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x20]
shl eax, 2
push eax
lea eax, [ebp - 0x440]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
sbb ecx, dword [ebp - 0xc]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
fild qword [ebp - 0x30]
fdiv qword [ebp - 0x40]
fmul qword [0x4416e0]
call fcn.004248a0
cmp eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
je 0x412c23
push eax
push 1
push 0x400
push dword [edi + 0x1097a10]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
add dword [ebp - 8], 1
adc dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
jl 0x412b85
jg 0x412c44
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 8], eax
jb 0x412b85
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
push eax
push ecx
mov ebx, esi
mov ecx, edi
call fcn.00412eeb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push 0x64
inc eax
push eax
push 0x400
push dword [edi + 0x1097a10]
mov dword [edi + 0x1097a30], eax
call dword [sym.imp.USER32.dll_SendMessageW]
and dword [edi + 0x1097a10], 0
pop esi
pop ebx
leave
ret