Function at 0x4119dd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x868
mov eax, dword [edi + 0x10cc07c]
mov ecx, dword [edi + 0x10cc080]
mov edx, dword [eax + 0xe0]
mov eax, dword [eax + 0xe4]
push ebx
mov ebx, dword [ecx + 0xe0]
mov ecx, dword [ecx + 0xe4]
cmp eax, ecx
push esi
lea esi, [edi + 0x10969f8]
mov dword [ebp - 0x3c], esi
jg 0x411a2d
jl 0x411a1f
cmp edx, ebx
jae 0x411a2d
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ecx
jmp 0x411a39
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x30]
jne 0x411a4d
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x2c]
je 0x411d59
mov ecx, dword [ebp - 0x30]
xor ebx, ebx
sub ecx, eax
mov eax, dword [ebp - 0x2c]
sbb eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
push 0xcf
mov dword [ebp - 0x44], ebx
fstp qword [ebp - 0x60]
call fcn.0041482f
pop ecx
push eax
push 2
push 0x400
push dword [edi + 0x1097a10]
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push ebx
push ebx
push 1
push esi
mov esi, dword [edi + 0x10cc078]
call fcn.0040282c
push ebx
push 0x20
push 3
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x40], eax
jne 0x411ad6
push 0x64
push 1
push 0x400
push dword [edi + 0x1097a10]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [edi + 0x1097a10], ebx
jmp 0x411d59
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [edi + 0x10cc078]
mov esi, dword [eax + 0x2c]
imul esi, dword [edi + 0x10975fc]
shl esi, 2
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push ebx
push eax
mov dword [ebp - 0x34], eax
call fcn.004204c0
mov eax, dword [edi + 0x10cc078]
mov eax, dword [eax + 0x2c]
add esp, 0xc
cmp dword [edi + 0x10975fc], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 8], ebx
jbe 0x411b94
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0xc], ecx
cmp eax, ebx
mov dword [ebp - 4], ebx
jle 0x411b7e
mov esi, dword [ebp - 0xc]
mov eax, dword [edi + 0x10975fc]
mov ecx, dword [ebp - 8]
cdq
sub eax, edx
sar eax, 1
cdq
sub ecx, eax
push 0
pop eax
sbb eax, edx
add ecx, dword [ebp - 0x20]
adc eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
push ecx
mov ecx, dword [edi + 0x10cc078]
call fcn.004024f3
fstp dword [esi]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add esi, 4
cmp eax, dword [ebp - 0x24]
jl 0x411b3f
mov eax, dword [ebp - 0x24]
inc dword [ebp - 8]
mov ecx, eax
shl ecx, 2
add dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 8]
cmp ecx, dword [edi + 0x10975fc]
jb 0x411b35
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
jg 0x411d03
jl 0x411bb4
cmp ecx, dword [ebp - 0x30]
jae 0x411d03
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
sbb ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], ecx
fild qword [ebp - 0x58]
fdiv qword [ebp - 0x60]
fmul qword [0x4416e0]
call fcn.004248a0
mov esi, eax
cmp esi, dword [ebp - 0x44]
je 0x411bf5
push esi
push 1
push 0x400
push dword [edi + 0x1097a10]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x44], esi
cmp dword [ebp - 0x24], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
jle 0x411cb8
lea eax, [edi + 0x10971f8]
lea esi, [ebp - 0x468]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x34]
mov ecx, esi
sub eax, ecx
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], ebx
jne 0x411c30
mov eax, dword [edi + 0x10cc078]
cmp dword [eax + 0x30], 1
je 0x411ca2
mov eax, dword [edi + 0x10975fc]
mov ecx, dword [edi + 0x10cc078]
cdq
sub eax, edx
sar eax, 1
cdq
add eax, dword [ebp - 0x18]
adc edx, dword [ebp - 0x14]
push edx
push eax
mov eax, dword [ebp - 4]
call fcn.004024f3
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x34]
mov eax, ecx
imul eax, dword [ebp - 0x38]
add eax, dword [ebp - 4]
fstp dword [edx + eax*4]
mov eax, dword [edi + 0x10975fc]
cmp eax, ebx
fldz
fstp dword [esi]
mov dword [ebp - 0x4c], eax
jle 0x411c90
mov eax, dword [ebp - 0x50]
mov edx, ecx
mov ecx, dword [edi + 0x10975fc]
shl edx, 2
add eax, esi
fld dword [esi]
fadd dword [eax]
add eax, edx
dec ecx
fstp dword [esi]
jne 0x411c85
fld dword [esi]
mov eax, dword [ebp - 8]
fidiv dword [ebp - 0x4c]
inc dword [ebp - 8]
fstp dword [ebp + eax*4 - 0x868]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add dword [ebp - 0xc], 4
add esi, 4
cmp eax, dword [ebp - 0x24]
jl 0x411c1d
push ebx
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 8]
shl eax, 2
push eax
lea eax, [ebp - 0x868]
push eax
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x38]
inc eax
cdq
idiv dword [edi + 0x10975fc]
add dword [ebp - 0x18], 1
adc dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], edx
jl 0x411bb4
jg 0x411d03
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x18], eax
jb 0x411bb4
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x40]
push dword [ebp - 0x20]
mov ecx, edi
call fcn.00412eeb
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x64
push 1
mov ebx, 0x400
push ebx
push dword [edi + 0x1097a10]
call esi
push dword [ebp - 0x3c]
and dword [edi + 0x1097a10], 0
push 1
push ebx
push dword [0x44b424]
call esi
pop esi
pop ebx
leave
ret