Function at 0x4136a0
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 0x4136fc
jl 0x4136ea
cmp edi, ecx
jae 0x4136fc
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jmp 0x413718
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 0x413724
cmp ebp, eax
je 0x413962
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.004159d0
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.00401e50
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 0x4137ce
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 0x413911
jl 0x4137f9
cmp edi, dword [esp + 0x18]
jae 0x413911
fld qword [0x4307c8]
fdiv qword [esp + 0x38]
fstp qword [esp + 0x48]
mov eax, dword [esp + 0x28]
xor edi, edi
test eax, eax
jle 0x413874
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.004014c0
fstp dword [esp + 0x30]
cmp dword [ebx], 0
jne 0x413849
fld dword [esp + 0x30]
jmp 0x413856
mov eax, dword [esp + 0x30]
push eax
push edi
mov ecx, esi
call fcn.00411930
mov eax, dword [esp + 0x28]
fstp dword [esp + edi*4 + 0x50]
inc edi
add ebx, 0xa0c
add ebp, 4
cmp edi, eax
jl 0x413820
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 [0x42f6f0]
call fcn.0041a7f8
mov edi, eax
cmp edi, dword [esp + 0x34]
je 0x4138db
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 0x413807
jg 0x41390d
mov eax, dword [esp + 0x18]
mov ecx, edi
cmp ecx, eax
jb 0x413807
mov edi, dword [esp + 0x20]
push ebp
push edi
push ebx
mov ecx, esi
call fcn.00411a40
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 [0x4405b4]
push 0x400
push eax
call edi
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret