Function at 0x412c84
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov ecx, dword [edi + 0x10cc080]
lea eax, [edi + 0x10969f8]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 0x10cc07c]
mov edx, dword [eax + 0xe0]
mov eax, dword [eax + 0xe4]
push ebx
push esi
mov esi, dword [ecx + 0xe0]
mov ecx, dword [ecx + 0xe4]
cmp eax, ecx
jg 0x412cd4
jl 0x412cc6
cmp edx, esi
jae 0x412cd4
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ecx
jmp 0x412ce0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x20]
jne 0x412cf4
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x1c]
je 0x412ee7
mov ecx, dword [ebp - 0x20]
xor ebx, ebx
sub ecx, eax
mov eax, dword [ebp - 0x1c]
sbb eax, dword [ebp - 0x14]
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 - 0x50]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x2c], 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]
push dword [ebp - 0x24]
mov eax, esi
mov esi, dword [edi + 0x10cc078]
call fcn.00402d29
push ebx
push 0x20
push 3
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x30], eax
jne 0x412d8d
push 0x64
push 1
push 0x400
push dword [edi + 0x1097a10]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [edi + 0x1097a10], ebx
jmp 0x412ee7
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
jg 0x412e9b
jl 0x412db8
cmp ecx, dword [ebp - 0x20]
jae 0x412e9b
cmp dword [ebp - 0x2c], ebx
mov dword [ebp - 0xc], ebx
jle 0x412e1d
lea eax, [edi + 0x10cbc38]
lea esi, [edi + 0x10b7c34]
mov dword [ebp - 0x28], eax
push dword [ebp - 4]
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
push dword [ebp - 8]
mov ecx, dword [edi + 0x10cc078]
dec eax
call fcn.004024f3
fstp dword [ebp - 0x34]
cmp dword [esi], ebx
fld dword [ebp - 0x34]
mov eax, dword [ebp - 0xc]
je 0x412e01
push ecx
mov ecx, edi
fstp dword [esp]
call fcn.0041295c
mov eax, dword [ebp - 0xc]
inc dword [ebp - 0xc]
fstp dword [ebp + eax*4 - 0x450]
mov eax, dword [ebp - 0xc]
add dword [ebp - 0x28], 4
add esi, 0xa0c
cmp eax, dword [ebp - 0x2c]
jl 0x412dcf
push ebx
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x2c]
shl eax, 2
push eax
lea eax, [ebp - 0x450]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
sbb ecx, dword [ebp - 0x14]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
fild qword [ebp - 0x40]
fdiv qword [ebp - 0x50]
fmul qword [0x4416e0]
call fcn.004248a0
mov esi, eax
cmp esi, dword [ebp - 0x38]
je 0x412e7a
push esi
push 1
push 0x400
push dword [edi + 0x1097a10]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x38], esi
add dword [ebp - 8], 1
adc dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x1c]
jl 0x412db8
jg 0x412e9b
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 8], eax
jb 0x412db8
push dword [ebp - 0x14]
mov ebx, dword [ebp - 0x30]
push dword [ebp - 0x18]
mov ecx, edi
call fcn.00412eeb
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
push 0x64
inc eax
push eax
mov esi, 0x400
push esi
push dword [edi + 0x1097a10]
mov dword [edi + 0x1097a30], eax
call ebx
push dword [ebp - 0x24]
and dword [edi + 0x1097a10], 0
push 1
push esi
push dword [0x44b424]
call ebx
pop esi
pop ebx
leave
ret