Function at 0x4126f1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [edi + 0x10cc07c]
mov ecx, dword [edi + 0x10cc080]
mov edx, dword [eax + 0xe0]
mov eax, dword [eax + 0xe4]
push ebx
mov ebx, dword [ecx + 0xe0]
mov ecx, dword [ecx + 0xe4]
cmp eax, ecx
push esi
lea esi, [edi + 0x10969f8]
mov dword [ebp - 0x24], esi
jg 0x412741
jl 0x412733
cmp edx, ebx
jae 0x412741
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ecx
jmp 0x41274d
mov dword [ebp - 0x18], ebx
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 0x412761
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x1c]
je 0x412958
mov ecx, dword [ebp - 0x20]
and dword [ebp - 0x28], 0
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]
push 0xcc
fstp qword [ebp - 0x48]
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 ebx, [edi + 0x10cbbb4]
push esi
mov esi, dword [edi + 0x10cc078]
mov eax, ebx
call fcn.00402d29
xor esi, esi
push esi
push 0x20
push 3
push esi
push esi
push 0x40000000
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x2c], eax
jne 0x4127f4
push 0x64
push 1
push 0x400
push dword [edi + 0x1097a10]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [edi + 0x1097a10], esi
jmp 0x412958
push 2
push esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
mov ebx, dword [ebx]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
jg 0x412910
jl 0x412824
cmp ecx, dword [ebp - 0x20]
jae 0x412910
cmp ebx, esi
mov dword [ebp - 0xc], esi
jle 0x412889
lea esi, [edi + 0x10cbbb8]
push dword [ebp - 4]
mov eax, dword [esi + 0x80]
mov ebx, dword [ebp - 0xc]
push dword [ebp - 8]
mov ecx, dword [edi + 0x10cc078]
dec eax
lea ebx, [ebp + ebx*4 - 0x448]
call fcn.004024f3
fimul dword [esi]
push dword [ebp - 4]
mov eax, dword [esi + 0x84]
push dword [ebp - 8]
mov ecx, dword [edi + 0x10cc078]
dec eax
fstp dword [ebx]
call fcn.004024f3
fimul dword [esi + 4]
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add esi, 8
cmp eax, dword [ebp - 0x30]
fadd dword [ebx]
fstp dword [ebx]
jl 0x412831
mov ebx, dword [ebp - 0x30]
xor esi, esi
push esi
lea eax, [ebp - 0x3c]
push eax
mov eax, ebx
shl eax, 2
push eax
lea eax, [ebp - 0x448]
push eax
push dword [ebp - 0x2c]
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 - 0x38], eax
mov dword [ebp - 0x34], ecx
fild qword [ebp - 0x38]
fdiv qword [ebp - 0x48]
fmul qword [0x4416e0]
call fcn.004248a0
cmp eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
je 0x4128e9
push eax
push 1
push 0x400
push dword [edi + 0x1097a10]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
add dword [ebp - 8], 1
adc dword [ebp - 4], esi
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x1c]
jl 0x412824
jg 0x41290a
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 8], eax
jb 0x412824
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x2c]
push eax
push ecx
mov ecx, edi
call fcn.00412eeb
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
push 0x64
inc eax
push eax
mov ebx, 0x400
push ebx
push dword [edi + 0x1097a10]
mov dword [edi + 0x1097a30], eax
call esi
push dword [ebp - 0x24]
and dword [edi + 0x1097a10], 0
push 1
push ebx
push dword [0x44b424]
call esi
pop esi
pop ebx
leave
ret