Function at 0x413d10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc48
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x10cc07c]
mov ecx, dword [ebx + 0x10cc080]
mov edx, dword [ecx + 0xe0]
mov ecx, dword [ecx + 0xe4]
push ebp
mov ebp, dword [eax + 0xe0]
mov eax, dword [eax + 0xe4]
cmp eax, ecx
push esi
lea esi, [ebx + 0x10969f8]
push edi
mov dword [esp + 0x44], esi
jg 0x413d6c
jl 0x413d5a
cmp ebp, edx
jae 0x413d6c
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
jmp 0x413d88
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], eax
mov ebp, edx
mov edx, dword [esp + 0x18]
mov ecx, eax
mov eax, dword [esp + 0x14]
cmp ebp, edx
jne 0x413d94
cmp eax, ecx
je 0x414015
sub edx, ebp
sbb ecx, eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
fild qword [esp + 0x20]
push 0xcc
mov dword [esp + 0x38], 0
fstp qword [esp + 0x3c]
call fcn.00416d90
mov edx, dword [ebx + 0x1097a10]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 4
push eax
push 2
push 0x400
push edx
call edi
mov eax, dword [0x44954c]
push 0
lea ecx, [eax + 0x4c9c]
push ecx
mov ecx, dword [ebx + 0x10cc078]
add eax, 0x489c
push eax
push 1
push esi
call fcn.00401bd0
push 0
push 0x20
push 3
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x2c], eax
jne 0x413e39
mov edx, dword [ebx + 0x1097a10]
push 0x64
push 1
push 0x400
push edx
call edi
mov dword [ebx + 0x1097a10], 0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [0x44954c]
lea esi, [eax + 0x489c]
mov ecx, 0x100
lea edi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x4c9c]
mov eax, dword [ebx + 0x10cc078]
mov edx, dword [eax + 0x30]
mov ecx, 0x100
lea edi, [esp + 0x458]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x2c]
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x1c]
mov eax, ebp
cmp eax, ecx
mov dword [esp + 0x40], edx
jg 0x413fb7
jl 0x413eaa
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x18]
jae 0x413fb7
fld qword [0x438848]
fdiv qword [esp + 0x38]
fstp qword [esp + 0x48]
mov eax, dword [esp + 0x30]
xor edi, edi
xor esi, esi
test eax, eax
jle 0x413f3f
lea edx, [ebx + 0x10971f8]
mov dword [esp + 0x28], edx
mov edi, edi
mov eax, dword [esp + 0x28]
cmp dword [eax], 0
jne 0x413ee0
cmp dword [esp + 0x40], 1
je 0x413f05
mov ecx, dword [esp + 0x20]
push esi
push ebp
push ecx
mov ecx, dword [ebx + 0x10cc078]
call fcn.00401840
fmul dword [esp + esi*4 + 0x58]
inc edi
fadd dword [esp + esi*4 + 0x458]
fstp dword [esp + edi*4 + 0x854]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
inc esi
add ecx, 4
cmp esi, eax
mov dword [esp + 0x28], ecx
jl 0x413ed0
test edi, edi
jle 0x413f3f
push 0
lea edx, [esp + 0x58]
push edx
mov edx, dword [esp + 0x34]
lea eax, [edi*4]
push eax
lea ecx, [esp + 0x864]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub eax, esi
mov ecx, ebp
sbb ecx, edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
fild qword [esp + 0x38]
fmul qword [esp + 0x48]
fmul qword [0x437698]
call fcn.0041bcd8
mov esi, eax
cmp esi, dword [esp + 0x34]
je 0x413f8d
mov edx, dword [ebx + 0x1097a10]
push esi
push 1
push 0x400
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x34], esi
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
add edx, 1
adc ebp, 0
cmp ebp, eax
mov dword [esp + 0x20], edx
jl 0x413eb8
jg 0x413fb7
mov eax, dword [esp + 0x18]
mov ecx, edx
cmp ecx, eax
jb 0x413eb8
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x2c]
push ecx
push edx
push esi
mov ecx, ebx
call fcn.00412df0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0x1097a10]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x64
push 1
push 0x400
push eax
mov dword [ebx + 0x1097a30], 1
call esi
mov ecx, dword [esp + 0x44]
push ecx
push 1
mov dword [ebx + 0x1097a10], 0
mov edx, dword [0x4495b4]
push 0x400
push edx
call esi
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret