Function at 0x414f40
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x1458
call fcn.00428080
lea eax, [edi + 0x10969f8]
push ebx
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x10cc07c]
mov ebx, dword [eax + 0xe4]
push ebp
mov ebp, dword [eax + 0xe0]
mov eax, dword [edi + 0x10cc080]
mov ecx, dword [eax + 0xe0]
mov eax, dword [eax + 0xe4]
cmp ebx, eax
push esi
jg 0x414f97
jl 0x414f85
cmp ebp, ecx
jae 0x414f97
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
jmp 0x414fb3
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov ebp, ecx
mov ecx, dword [esp + 0x20]
mov ebx, eax
mov eax, dword [esp + 0x24]
cmp ebp, ecx
jne 0x414fbf
cmp ebx, eax
je 0x415344
mov edx, dword [0x44e3ac]
sub ecx, ebp
mov dword [esp + 0x50], ecx
mov ecx, dword [0x44f440]
sbb eax, ebx
push 0x100
shl ecx, 9
add ecx, 0x44e440
push ecx
mov dword [esp + 0x5c], eax
fild qword [esp + 0x58]
push 0xcc
push edx
fstp qword [esp + 0x68]
mov dword [esp + 0x50], 0
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [0x44f440]
lea ecx, [eax + 1]
and ecx, 0x80000007
jns 0x415017
dec ecx
or ecx, 0xfffffff8
inc ecx
mov edx, dword [edi + 0x1097a10]
shl eax, 9
add eax, 0x44e440
push eax
push 2
push 0x400
push edx
mov dword [0x44f440], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [edi + 0x10cc078]
fld dword [esi + 0x4ff0]
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x28]
fst qword [esp + 0x38]
push eax
fstp dword [esp + 0x2c]
push 0
push 0
push 1
push ecx
call fcn.00402fb0
mov edx, dword [esp + 0x2c]
push 0
push 0x20
push 3
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x34], esi
jne 0x4150b2
mov eax, dword [edi + 0x1097a10]
push 0x64
push 1
push 0x400
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [edi + 0x1097a10], 0
pop esi
pop ebp
pop ebx
add esp, 0x1458
ret
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [edi + 0x10cc078]
mov edx, dword [ecx + 0x2c]
push 0x800
lea eax, [esp + 0xc64]
push 0
push eax
mov dword [esp + 0x50], edx
call fcn.00425ee0
add esp, 0xc
push 0x400
lea ecx, [esp + 0x864]
push 0
push ecx
call fcn.00425ee0
add esp, 0xc
push 0x800
lea edx, [esp + 0x64]
push 0
push edx
call fcn.00425ee0
fld dword [edi + 0x10cc074]
fmul qword [esp + 0x44]
mov ecx, dword [esp + 0x28]
fnstcw word [esp + 0x1c]
add esp, 0xc
fdiv qword [0x4424b0]
movzx eax, word [esp + 0x10]
or eax, 0xc00
cmp ecx, dword [esp + 0x24]
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], 0
fldcw word [esp + 0x14]
fistp qword [esp + 0x38]
mov eax, dword [esp + 0x38]
fldcw word [esp + 0x10]
mov dword [esp + 0x10], eax
jg 0x4152f1
jl 0x41516a
mov edx, dword [esp + 0x18]
cmp edx, dword [esp + 0x20]
jae 0x4152f1
mov eax, ebp
sub eax, dword [esp + 0x18]
mov ecx, ebx
sbb ecx, dword [esp + 0x1c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
fild qword [esp + 0x38]
fdiv qword [esp + 0x58]
fmul qword [0x4424c8]
call fcn.00427ae0
mov esi, eax
cmp esi, dword [esp + 0x40]
je 0x4151b2
mov edx, dword [edi + 0x1097a10]
push esi
push 1
push 0x400
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x40], esi
xor esi, esi
cmp dword [esp + 0x44], esi
mov dword [esp + 0x14], esi
jle 0x415294
lea eax, [edi + 0x10971f8]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x30]
cmp dword [ecx], 0
jne 0x4151e5
mov edx, dword [edi + 0x10cc078]
cmp dword [edx + 0x30], 1
je 0x415282
mov ecx, dword [edi + 0x10cc078]
push ebx
push ebp
mov eax, esi
call fcn.00402c20
fstp dword [esp + 0x48]
fld dword [esp + 0x48]
add dword [esp + esi*8 + 0x60], 1
fmul st(0), st(0)
mov eax, 0
adc dword [esp + esi*8 + 0x64], eax
fadd qword [esp + esi*8 + 0xc60]
mov ecx, dword [esp + esi*8 + 0x64]
cmp ecx, eax
fst qword [esp + 0x48]
fstp qword [esp + esi*8 + 0xc60]
jl 0x415258
jg 0x415232
mov edx, dword [esp + esi*8 + 0x60]
cmp edx, dword [esp + 0x10]
jbe 0x415258
mov ecx, ebp
sub ecx, dword [esp + 0x10]
mov edx, ebx
sbb edx, eax
push edx
push ecx
mov ecx, dword [edi + 0x10cc078]
mov eax, esi
call fcn.00402c20
fmul st(0), st(0)
fsubr qword [esp + 0x48]
fstp qword [esp + esi*8 + 0xc60]
mov eax, dword [esp + 0x10]
fild dword [esp + 0x10]
test eax, eax
jge 0x41526a
fadd qword [0x4424a0]
fdivr qword [esp + esi*8 + 0xc60]
call fcn.0043a9c0
fstp dword [esp + esi*4 + 0x860]
add dword [esp + 0x14], 1
add dword [esp + 0x30], 4
add esi, 1
cmp esi, dword [esp + 0x44]
jl 0x4151cc
mov eax, dword [esp + 0x28]
mov ecx, eax
add eax, 1
cmp ecx, dword [esp + 0x10]
mov dword [esp + 0x28], eax
jbe 0x4152cd
mov eax, dword [esp + 0x14]
push 0
lea edx, [esp + 0x54]
push edx
lea ecx, [eax*4]
mov eax, dword [esp + 0x3c]
push ecx
lea edx, [esp + 0x86c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
add ebp, 1
adc ebx, 0
cmp ebx, dword [esp + 0x24]
jl 0x41516a
jg 0x4152e9
cmp ebp, dword [esp + 0x20]
jb 0x41516a
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
xor ecx, ecx
add eax, dword [esp + 0x18]
mov ebx, esi
adc ecx, dword [esp + 0x1c]
push ecx
push eax
mov ecx, edi
call fcn.00415cd0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [edi + 0x1097a10]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x64
push 1
push 0x400
push edx
call esi
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x44e420]
push eax
push 1
push 0x400
push ecx
mov dword [edi + 0x1097a10], 0
call esi
pop esi
pop ebp
pop ebx
add esp, 0x1458
ret