Function at 0x100ba160
Capabilities:
Get common file path
Get file size
Get startup folder
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1011e64b
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x288]
mov dword fs:[0], eax
mov eax, dword [esp + 0x298]
mov esi, dword [esp + 0x29c]
mov dword [esp + 0x48], eax
xor eax, eax
push 0x206
push eax
mov word [esp + 0x84], ax
lea eax, [esp + 0x86]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 0x7c]
push eax
push 0
push 0
push 0x29
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, str.MacromedFlashVersion.dll
mov dword [esp + 0x28], 0
xor eax, eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100ba210
sub ecx, edx
sar ecx, 1
push ecx
push str.MacromedFlashVersion.dll
lea ecx, [esp + 0x20]
call fcn.10004390
mov dword [esp + 0x290], 0
xor eax, eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
cmp word [esp + 0x7c], ax
jne 0x100ba26b
xor ecx, ecx
jmp 0x100ba281
lea ecx, [esp + 0x7c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100ba272
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x38]
call fcn.10004390
mov byte [esp + 0x290], 1
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x34]
lea ecx, [esp + 0x68]
call fcn.100423e0
add esp, 4
mov byte [esp + 0x290], 3
cmp dword [esp + 0x44], 8
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x100ba2ce
push dword [esp + 0x30]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
mov byte [esp + 0x290], 4
cmp dword [esp + 0x2c], 8
jb 0x100ba2fd
push dword [esp + 0x18]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
lea ecx, [esp + 0x64]
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
call fcn.100264f0
mov byte [esi], al
test al, al
jne 0x100ba32a
xor bl, bl
jmp 0x100ba4eb
push 4
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [esp + 0x54], eax
mov byte [esp + 0x290], 5
test eax, eax
je 0x100ba353
mov dword [eax], 0
mov dword [eax], 0xffffffff
jmp 0x100ba355
xor eax, eax
mov byte [esp + 0x290], 4
mov dword [esp + 0x50], eax
mov byte [esp + 0x290], 6
lea eax, [esp + 0x64]
push 0x80
push 3
push 1
push 0x80000000
push eax
lea ecx, [esp + 0x64]
call fcn.1005c770
mov esi, dword [esp + 0x50]
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test al, al
jne 0x100ba39a
xor bl, bl
jmp 0x100ba4bd
xor bl, bl
test esi, esi
je 0x100ba4b7
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x100ba4a3
lea ecx, [esp + 0x60]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x54], eax
cmp eax, 0xffffffff
jne 0x100ba3d4
call ebp
test eax, eax
jne 0x100ba49d
mov ecx, dword [esp + 0x60]
xor eax, eax
add eax, dword [esp + 0x54]
adc ecx, 0
jne 0x100ba3ec
cmp eax, 8
jb 0x100ba49d
sub eax, 8
sbb ecx, 0
cmp dword [esi], 0xffffffff
je 0x100ba49d
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x58]
push 0
push ecx
push eax
mov dword [esp + 0x60], eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x54], eax
cmp eax, 0xffffffff
jne 0x100ba422
call ebp
test eax, eax
jne 0x100ba49d
mov dword [esp + 0x5c], 0
mov dword [esp + 0x4c], 0
cmp dword [esi], 0xffffffff
je 0x100ba49d
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x4c]
push 0
push eax
push 4
lea eax, [esp + 0x68]
mov dword [esp + 0x58], 0
push eax
push dword [esi]
call ebp
test eax, eax
je 0x100ba49d
cmp dword [esp + 0x5c], 0xff2144
jne 0x100ba49d
mov eax, dword [esp + 0x48]
mov dword [esp + 0x4c], 0
test eax, eax
je 0x100ba49d
cmp dword [esi], 0xffffffff
je 0x100ba49d
push 0
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], 0
push ecx
push 4
push eax
push dword [esi]
call ebp
test eax, eax
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x100ba4b7
push eax
call ecx
test eax, eax
je 0x100ba4b7
mov dword [esi], 0xffffffff
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x290], 4
test esi, esi
je 0x100ba4eb
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x100ba4dd
test eax, eax
je 0x100ba4dd
push eax
call ecx
mov dword [esi], 0
push esi
call edi
add esp, 4
mov dword [esp + 0x50], 0
mov dword [esp + 0x290], 0xffffffff
cmp dword [esp + 0x78], 8
jb 0x100ba506
push dword [esp + 0x64]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x78], 7
mov word [esp + 0x64], ax
mov al, bl
mov dword [esp + 0x74], 0
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.10103694
add esp, 0x280
ret 8