Function at 0x414a50
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 ecx, dword [esi + 0x10cc07c]
mov edx, dword [esi + 0x10cc080]
push edi
mov edi, dword [ecx + 0xe0]
mov ebp, dword [ecx + 0xe4]
mov ecx, dword [edx + 0xe0]
lea eax, [esi + 0x10969f8]
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 0xe4]
cmp ebp, eax
jg 0x414aac
jl 0x414a9a
cmp edi, ecx
jae 0x414aac
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jmp 0x414ac8
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov ebp, eax
mov eax, dword [esp + 0x1c]
mov edi, ecx
mov ecx, dword [esp + 0x18]
cmp edi, ecx
jne 0x414ad4
cmp ebp, eax
je 0x414d12
sub ecx, edi
sbb eax, ebp
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x10cbbb4]
mov dword [esp + 0x10], ecx
fild qword [esp + 0x10]
lea ebx, [esi + 0x10cbbb4]
push 0xcc
mov dword [esp + 0x38], 0
fstp qword [esp + 0x3c]
mov dword [esp + 0x2c], eax
call fcn.00416d90
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 ebx
mov ebx, dword [esp + 0x34]
push ebx
call fcn.004021d0
push 0
push 0x20
push 3
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x40], ebx
jne 0x414b7e
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
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp ebp, dword [esp + 0x1c]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebp
jg 0x414cc1
jl 0x414ba9
cmp edi, dword [esp + 0x18]
jae 0x414cc1
fld qword [0x4318d8]
fdiv qword [esp + 0x38]
fstp qword [esp + 0x48]
mov eax, dword [esp + 0x28]
xor edi, edi
test eax, eax
jle 0x414c24
lea ebx, [esi + 0x10b7c34]
lea ebp, [esi + 0x10cbc38]
lea ecx, [ecx]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
dec eax
push eax
push ecx
mov ecx, dword [esi + 0x10cc078]
push edx
call fcn.00401840
fstp dword [esp + 0x30]
cmp dword [ebx], 0
jne 0x414bf9
fld dword [esp + 0x30]
jmp 0x414c06
mov eax, dword [esp + 0x30]
push eax
push edi
mov ecx, esi
call fcn.00412ce0
mov eax, dword [esp + 0x28]
fstp dword [esp + edi*4 + 0x50]
inc edi
add ebx, 0xa0c
add ebp, 4
cmp edi, eax
jl 0x414bd0
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x28]
push 0
lea ecx, [esp + 0x48]
push ecx
shl eax, 2
push eax
lea edx, [esp + 0x5c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
sub eax, edi
sbb ecx, ebp
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
fild qword [esp + 0x38]
fmul qword [esp + 0x48]
fmul qword [0x430728]
call fcn.0041bcd8
mov edi, eax
cmp edi, dword [esp + 0x34]
je 0x414c8b
mov edx, dword [esi + 0x1097a10]
push edi
push 1
push 0x400
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
add edi, 1
adc eax, 0
cmp eax, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
jl 0x414bb7
jg 0x414cbd
mov eax, dword [esp + 0x18]
mov ecx, edi
cmp ecx, eax
jb 0x414bb7
mov edi, dword [esp + 0x20]
push ebp
push edi
push ebx
mov ecx, esi
call fcn.00412df0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x1097a10]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x64
push 1
push 0x400
push ecx
mov dword [esi + 0x1097a30], 1
call edi
mov edx, dword [esp + 0x2c]
push edx
push 1
mov dword [esi + 0x1097a10], 0
mov eax, dword [0x4425b4]
push 0x400
push eax
call edi
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret