Function at 0x413f90
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 + 0x3c], esi
jg 0x413fec
jl 0x413fda
cmp ebp, edx
jae 0x413fec
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
jmp 0x414008
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 0x414014
cmp eax, ecx
je 0x414271
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 + 0x34], 0
fstp qword [esp + 0x4c]
call fcn.00416f80
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 4
push eax
mov eax, dword [ebx + 0x1097a10]
push 2
push 0x400
push eax
call edi
mov eax, dword [0x45410c]
push 0
lea ecx, [eax + 0x4c9c]
push ecx
mov ecx, dword [ebx + 0x10cc078]
add eax, 0x489c
push eax
push 1
push esi
call fcn.00401c90
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 0x4140b9
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 [0x45410c]
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]
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x2c]
mov eax, ebp
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
jg 0x414213
jl 0x414128
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x18]
jae 0x414213
xor esi, esi
xor edi, edi
cmp dword [esp + 0x34], esi
jle 0x4141a7
lea edx, [ebx + 0x10971f8]
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x28]
cmp dword [eax], 0
jne 0x41414c
cmp dword [esp + 0x38], 1
je 0x414173
mov ecx, dword [esp + 0x20]
push esi
push ebp
push ecx
mov ecx, dword [ebx + 0x10cc078]
call fcn.004018f0
fmul dword [esp + esi*4 + 0x58]
add edi, 1
fadd dword [esp + esi*4 + 0x458]
fstp dword [esp + edi*4 + 0x854]
add dword [esp + 0x28], 4
add esi, 1
cmp esi, dword [esp + 0x34]
jl 0x41413c
test edi, edi
jle 0x4141a7
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]
sub eax, dword [esp + 0x10]
mov ecx, ebp
sbb ecx, dword [esp + 0x14]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
fild qword [esp + 0x40]
fdiv qword [esp + 0x48]
fmul qword [0x43d7d0]
call fcn.00423f00
mov esi, eax
cmp esi, dword [esp + 0x30]
je 0x4141f1
mov edx, dword [ebx + 0x1097a10]
push esi
push 1
push 0x400
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x30], esi
add dword [esp + 0x20], 1
adc ebp, 0
cmp ebp, dword [esp + 0x1c]
jl 0x414128
jg 0x414213
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x20], eax
jb 0x414128
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.004130e0
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 + 0x3c]
push ecx
push 1
mov dword [ebx + 0x1097a10], 0
mov edx, dword [0x454174]
push 0x400
push edx
call esi
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret