Function at 0x411db0
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 eax, dword [esi + 0x4a7f38]
mov edx, dword [esi + 0x4a7f3c]
mov ecx, dword [edx + 0xb8]
push edi
mov edi, dword [eax + 0xb8]
mov ebx, dword [eax + 0xbc]
mov eax, dword [edx + 0xbc]
cmp ebx, eax
jg 0x411e02
jl 0x411df0
cmp edi, ecx
jae 0x411e02
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x411e1e
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov edi, ecx
mov ecx, dword [esp + 0x10]
mov ebx, eax
mov eax, dword [esp + 0x14]
cmp edi, ecx
jne 0x411e2a
cmp ebx, eax
je 0x411ff5
sub ecx, edi
sbb eax, ebx
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x4a7bac]
mov dword [esp + 0x20], ecx
fild qword [esp + 0x20]
lea ebp, [esi + 0x4a7bac]
push 0xcc
mov dword [esp + 0x30], 0
fstp qword [esp + 0x34]
mov dword [esp + 0x2c], eax
call fcn.004124e0
mov ecx, dword [esi + 0x48ba08]
add esp, 4
push eax
push 2
push 0x400
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x4a7f34]
push ebp
lea ebp, [esi + 0x48a9f0]
push ebp
call fcn.00401c50
push 0
push 0x20
push 3
push 0
push 0
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x3c], ebp
je 0x411fd5
push 2
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp ebx, dword [esp + 0x14]
mov dword [esp + 0x20], edi
jg 0x411fba
jl 0x411ed7
cmp edi, dword [esp + 0x10]
jae 0x411fba
fld qword [0x42c5b8]
fdiv qword [esp + 0x30]
fstp qword [esp + 0x40]
mov eax, dword [esp + 0x28]
xor edi, edi
test eax, eax
jle 0x411f1f
lea ebp, [esi + 0x4a7c30]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x20]
dec eax
push eax
push ebx
push ecx
mov ecx, dword [esi + 0x4a7f34]
call fcn.004014c0
fstp dword [esp + edi*4 + 0x50]
mov eax, dword [esp + 0x28]
inc edi
add ebp, 4
cmp edi, eax
jl 0x411ef5
mov ebp, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
push 0
lea edx, [esp + 0x50]
push edx
shl eax, 2
push eax
lea eax, [esp + 0x5c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
sub ecx, eax
mov edx, ebx
sbb edx, edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
fild qword [esp + 0x30]
fmul qword [esp + 0x40]
fmul qword [0x42b6c0]
call fcn.00416c6c
mov edi, eax
cmp edi, dword [esp + 0x2c]
je 0x411f88
mov eax, dword [esi + 0x48ba08]
push edi
push 1
push 0x400
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x2c], edi
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
add edx, 1
adc ebx, 0
cmp ebx, eax
mov dword [esp + 0x20], edx
jl 0x411ee5
jg 0x411fb2
mov ecx, dword [esp + 0x10]
mov eax, edx
cmp eax, ecx
jb 0x411ee5
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
push ebx
push edi
push ebp
mov ecx, esi
call fcn.004103b0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x48ba28], 1
mov edx, dword [esi + 0x48ba08]
push 0x64
push 1
push 0x400
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi + 0x48ba08], 0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret