Function at 0x1000cf10
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x238
mov eax, dword [0x10025160]
xor eax, esp
mov dword [esp + 0x234], eax
mov eax, dword [esp + 0x248]
mov ecx, dword [esp + 0x250]
push ebx
mov ebx, dword [esp + 0x240]
push ebp
mov ebp, dword [esp + 0x254]
push esi
push edi
mov edi, dword [esp + 0x254]
mov edx, edi
test edx, edx
mov dword [esp + 0x30], edx
fild dword [esp + 0x30]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x10], 0
jge 0x1000cf77
fadd dword [0x1001f5f0]
fmul qword [0x1001f5e8]
mov esi, dword [esp + 0x250]
add esi, 1
mov eax, esi
fdivr qword [0x1001f5e0]
lea ecx, [edi - 0x200]
shl eax, 9
cmp eax, ecx
mov dword [esp + 0x20], ecx
fmul qword [0x1001f5d8]
fstp dword [esp + 0x38]
jbe 0x1000cfb4
mov eax, 1
jmp 0x1000d344
push 0
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1000d33f
push 0
lea eax, [esp + 0x20]
push eax
push 0x200
lea ecx, [esp + 0x50]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000d33f
cmp dword [esp + 0x1c], 0x200
jne 0x1000d33f
mov ax, word [esp + 0x44]
cmp ax, 0xa5ec
je 0x1000d012
cmp ax, 0xa5dc
je 0x1000d012
mov eax, 0x7d0
jmp 0x1000d344
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
or byte [esi + ebp], 2
push 0x204
push 0
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x28], ebp
jne 0x1000d04e
mov eax, 8
jmp 0x1000d344
push edi
lea ecx, [esi - 1]
push ebx
push ecx
call dword [sym.imp.OleEngine.dll_unsigned_long_int___cdecl_OLENextBBEntry_unsigned_long_int__void___unsigned_long_int_]
lea ecx, [eax + 1]
add esp, 0xc
shl ecx, 9
cmp eax, 0xffffffff
je 0x1000d0ae
cmp ecx, dword [esp + 0x20]
ja 0x1000d0ae
push 0
push 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1000d0a1
push 0
lea edx, [esp + 0x20]
push edx
push 0x200
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000d0a1
cmp dword [esp + 0x1c], 0x200
je 0x1000d0bb
mov dword [esp + 0x10], 0x63000006
jmp 0x1000d329
mov dword [esp + 0x10], 1
jmp 0x1606d329
mov ebp, dword [esp + 0x18]
xor edi, edi
shr ebp, 9
je 0x1000d0eb
mov eax, dword [esp + 0x254]
push eax
push ebx
add esi, 0xffffffff
push esi
call dword [sym.imp.OleEngine.dll_unsigned_long_int___cdecl_OLENextBBEntry_unsigned_long_int__void___unsigned_long_int_]
add edi, 1
movzx ecx, di
add eax, 1
add esp, 0xc
cmp ecx, ebp
mov esi, eax
jb 0x1000d0c6
mov ecx, dword [esp + 0x254]
mov eax, esi
shl eax, 9
add ecx, 0xfffffe00
cmp eax, ecx
jbe 0x1000d10e
mov dword [esp + 0x10], 1
jmp 0x1000d30a
push 0
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1000d12c
mov dword [esp + 0x10], 2
jmp 0x1000d30a
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
sub eax, ecx
movzx edx, cx
and edx, 0x800001ff
mov ebp, esi
mov esi, eax
mov dword [esp + 0x20], esi
jns 0x1000d151
dec edx
or edx, 0xfffffe00
inc edx
test esi, esi
movzx eax, dx
mov dword [esp + 0x18], eax
jbe 0x1000d30a
cmp dword [esp + 0x10], 0
jne 0x1000d30a
cmp esi, 0x200
jbe 0x1000d185
mov ecx, 0x200
sub ecx, dword [esp + 0x18]
movzx edx, cx
mov dword [esp + 0x14], edx
jmp 0x1000d18c
movzx eax, si
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x254]
mov eax, ebp
shl eax, 9
add ecx, 0xfffffe00
cmp eax, ecx
ja 0x1000d101
push 0
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1000d302
mov edi, dword [esp + 0x28]
push 0
lea ecx, [esp + 0x20]
push ecx
push 0x200
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000d302
cmp dword [esp + 0x1c], 0x200
jne 0x1080d302
mov edx, dword [esp + 0x2c]
mov al, byte [edx + ebp]
test al, 1
je 0x1000d211
cmp byte [0x100250f1], 0
je 0x1000d26f
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
mov byte [0x100250f1], 0
jmp 0x1000d26f
test al, 2
jne 0x1000d26f
movzx eax, word [esp + 0x18]
movzx esi, word [esp + 0x14]
add edi, eax
push esi
push edi
call fcn.1000c140
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1000d240
push edi
mov eax, esi
call fcn.1000bea0
add esp, 4
test eax, eax
je 0x1000d25f
mov ecx, dword [esp + 0x24]
push ebx
push esi
push edi
push ecx
call fcn.1000bf40
add esp, 0x10
test eax, eax
jne 0x1000d2f8
mov byte [0x100250f1], 1
mov eax, dword [esp + 0x2c]
or byte [eax + ebp], 2
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x254]
push edx
push ebx
add ebp, 0xffffffff
push ebp
call dword [sym.imp.OleEngine.dll_unsigned_long_int___cdecl_OLENextBBEntry_unsigned_long_int__void___unsigned_long_int_]
mov ebp, eax
add esp, 0xc
cmp ebp, 0xffffffff
je 0x1000d101
movzx eax, word [esp + 0x14]
sub esi, eax
mov eax, dword [esp + 0x3c]
add ebp, 1
mov dword [esp + 0x20], esi
fld dword [eax]
mov dword [esp + 0x18], 0
fadd dword [esp + 0x38]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fst dword [eax]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
or eax, 0xc00
mov dword [esp + 0x30], eax
fldcw word [esp + 0x30]
fistp qword [esp + 0x30]
mov ecx, dword [esp + 0x30]
push ecx
fldcw word [esp + 0x18]
call fcn.1000bd10
test eax, eax
jne 0x1000d2ee
mov dword [esp + 0x10], 0x63000009
test esi, esi
ja 0x1000d160
jmp 0x1000d30a
mov dword [esp + 0x10], 7
jmp 0x1000d30a
mov dword [esp + 0x10], 0x63000006
cmp byte [0x100250f1], 0
je 0x1000d325
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
mov byte [0x100250f1], 0
mov ebp, dword [esp + 0x28]
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x10]
jmp 0x1000d344
mov eax, 6
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call main
add esp, 0x238
ret