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

Disassembly:
push 0xffffffffffffffff
push 0x48de3b
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 0x462b60
sub ecx, edx
sar ecx, 1
push ecx
push str.MacromedFlashVersion.dll
lea ecx, [esp + 0x20]
call fcn.00402f90
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 0x462bbb
xor ecx, ecx
jmp 0x462bd1
lea ecx, [esp + 0x7c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x462bc2
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x38]
call fcn.00402f90
mov byte [esp + 0x290], 1
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x34]
lea ecx, [esp + 0x68]
call fcn.0040c4c0
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 0x462c1e
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 0x462c4d
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.004140f0
mov byte [esi], al
test al, al
jne 0x462c7a
xor bl, bl
jmp 0x462e37
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 0x462ca3
mov dword [eax], 0
mov dword [eax], 0xffffffff
jmp 0x462ca5
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
sub esp, 8
lea ecx, [esp + 0x60]
push eax
call fcn.0041f3a0
mov esi, dword [esp + 0x50]
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test al, al
jne 0x462ce6
xor bl, bl
jmp 0x462e09
xor bl, bl
test esi, esi
je 0x462e03
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x462def
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 0x462d20
call ebp
test eax, eax
jne 0x462de9
mov ecx, dword [esp + 0x60]
xor eax, eax
add eax, dword [esp + 0x54]
adc ecx, 0
jne 0x462d38
cmp eax, 8
jb 0x462de9
sub eax, 8
sbb ecx, 0
cmp dword [esi], 0xffffffff
je 0x462de9
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 0x462d6e
call ebp
test eax, eax
jne 0x462de9
mov dword [esp + 0x5c], 0
mov dword [esp + 0x4c], 0
cmp dword [esi], 0xffffffff
je 0x462de9
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 0x462de9
cmp dword [esp + 0x5c], 0xff2144
jne 0x462de9
mov eax, dword [esp + 0x48]
mov dword [esp + 0x4c], 0
test eax, eax
je 0x462de9
cmp dword [esi], 0xffffffff
je 0x462de9
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 0x462e03
push eax
call ecx
test eax, eax
je 0x462e03
mov dword [esi], 0xffffffff
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x290], 4
test esi, esi
je 0x462e37
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x462e29
test eax, eax
je 0x462e29
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 0x462e52
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.0047ff74
add esp, 0x280
ret 8