Function at 0x414ca0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x448
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esi + 0x10969f8]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x10cc07c]
mov ebp, dword [eax + 0xe4]
push edi
mov edi, dword [eax + 0xe0]
mov eax, dword [esi + 0x10cc080]
mov ecx, dword [eax + 0xe0]
mov eax, dword [eax + 0xe4]
cmp ebp, eax
jg 0x414cfc
jl 0x414cea
cmp edi, ecx
jae 0x414cfc
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jmp 0x414d18
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 0x414d24
cmp ebp, eax
je 0x414f49
sub ecx, edi
sbb eax, ebp
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x10cbbb4]
mov dword [esp + 0x14], eax
fild qword [esp + 0x10]
lea ebx, [esi + 0x10cbbb4]
push 0xcc
mov dword [esp + 0x3c], 0
fstp qword [esp + 0x54]
mov dword [esp + 0x30], ecx
call fcn.00416f80
mov edx, dword [esi + 0x1097a10]
add esp, 4
push eax
push 2
push 0x400
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
fldz
push ecx
fstp dword [esp]
mov ecx, dword [esi + 0x10cc078]
push ebx
mov ebx, dword [esp + 0x38]
push ebx
call fcn.00402280
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 + 0x3c], ebx
jne 0x414dd2
mov eax, dword [esi + 0x1097a10]
push 0x64
push 1
push 0x400
push eax
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 0x414ef8
jl 0x414dfd
cmp edi, dword [esp + 0x18]
jae 0x414ef8
xor edi, edi
cmp dword [esp + 0x2c], edi
jle 0x414e64
lea ebx, [esi + 0x10b7c34]
lea ebp, [esi + 0x10cbc38]
mov ecx, dword [ebp]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
sub ecx, 1
push ecx
mov ecx, dword [esi + 0x10cc078]
push edx
push eax
call fcn.004018f0
fstp dword [esp + 0x34]
cmp dword [ebx], 0
fld dword [esp + 0x34]
je 0x414e46
push ecx
fstp dword [esp]
push edi
mov ecx, esi
call fcn.00412fc0
fstp dword [esp + edi*4 + 0x58]
add edi, 1
add ebx, 0xa0c
add ebp, 4
cmp edi, dword [esp + 0x2c]
jl 0x414e11
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
push 0
lea ecx, [esp + 0x50]
push ecx
add eax, eax
add eax, eax
push eax
lea edx, [esp + 0x64]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
sbb ecx, ebp
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
fild qword [esp + 0x40]
fdiv qword [esp + 0x50]
fmul qword [0x43d7d0]
call fcn.00423f00
mov edi, eax
cmp edi, dword [esp + 0x38]
je 0x414eca
mov edx, dword [esi + 0x1097a10]
push edi
push 1
push 0x400
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x38], edi
add dword [esp + 0x10], 1
mov eax, dword [esp + 0x14]
adc eax, 0
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
jl 0x414dfd
jg 0x414ef4
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x10], eax
jb 0x414dfd
mov edi, dword [esp + 0x20]
push ebp
push edi
push ebx
mov ecx, esi
call fcn.004130e0
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 + 0x30]
push edx
push 1
mov dword [esi + 0x1097a10], 0
mov eax, dword [0x454174]
push 0x400
push eax
call edi
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret