Function at 0x48bac0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb3c6
mov eax, dword fs:[0]
push eax
sub esp, 0x7a8
mov eax, dword [0x53e320]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7b4], 0x208
mov ecx, dword [ebp + 8]
call fcn.00409830
cmp eax, 5
jae 0x48bb0c
mov eax, 0x80004005
jmp 0x48c09f
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x730]
push ecx
call fcn.0048d190
add esp, 8
mov dword [ebp - 4], 0
mov edx, dword [sym.imp.MSVCR120.dll_tolower]
push edx
lea eax, [ebp - 0x7b0]
push eax
lea ecx, [ebp - 0x730]
call fcn.00426d00
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x7a4]
push edx
lea ecx, [ebp - 0x730]
call fcn.00426cd0
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x7a8]
push ecx
lea ecx, [ebp - 0x730]
call fcn.00426d00
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x7ac]
push eax
call fcn.0048c5f0
add esp, 0x14
mov edx, 0x50a584
lea ecx, [ebp - 0x730]
call fcn.00470830
movzx ecx, al
test ecx, ecx
je 0x48bbb9
mov dword [ebp - 0x7a0], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x730]
call fcn.00409900
mov eax, dword [ebp - 0x7a0]
jmp 0x48c09f
mov byte [ebp - 0x308], 0
push 0x207
push 0
lea edx, [ebp - 0x307]
push edx
call sub.MSVCR120.dll_memset
add esp, 0xc
xor eax, eax
mov word [ebp - 0x718], ax
push 0x40e
push 0
lea ecx, [ebp - 0x716]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
xor edx, edx
mov word [ebp - 0xb0], dx
push 0x4c
push 0
lea eax, [ebp - 0xae]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x100], cx
push 0x4c
push 0
lea edx, [ebp - 0xfe]
push edx
call sub.MSVCR120.dll_memset
add esp, 0xc
xor eax, eax
mov word [ebp - 0x60], ax
push 0x4c
push 0
lea ecx, [ebp - 0x5e]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
lea edx, [ebp - 0x60]
push edx
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0xb0]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00409fa0
push eax
call dword [sym.imp.msi.dll_MsiEnumComponentCostsW]
mov dword [ebp - 0x778], eax
cmp dword [ebp - 0x778], 0
jne 0x48bd0c
mov dword [ebp - 0x79c], 0x410
lea edx, [ebp - 0x79c]
push edx
lea eax, [ebp - 0x718]
push eax
lea ecx, [ebp - 0x60]
push ecx
lea edx, [ebp - 0xb0]
push edx
call dword [sym.imp.msi.dll_MsiAdvertiseScriptW]
mov dword [ebp - 0x788], eax
cmp dword [ebp - 0x788], 3
jne 0x48bce5
lea eax, [ebp - 0x718]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0040bad0
mov dword [ebp - 0x78c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x730]
call fcn.00409900
mov eax, dword [ebp - 0x78c]
jmp 0x48c09f
mov dword [ebp - 0x790], 0x57
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x730]
call fcn.00409900
mov eax, dword [ebp - 0x790]
jmp 0x48c09f
mov dword [ebp - 0x778], 0x57
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov ecx, dword [ebp + 8]
call fcn.00409fa0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x768], eax
cmp dword [ebp - 0x768], 0xffffffff
jne 0x48bd6f
mov ecx, dword [ebp - 0x778]
mov dword [ebp - 0x798], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x730]
call fcn.00409900
mov eax, dword [ebp - 0x798]
jmp 0x48c09f
mov dword [ebp - 0x774], 0
mov dword [ebp - 0x76c], 0
push 0
lea edx, [ebp - 0x76c]
push edx
push 4
lea eax, [ebp - 0x774]
push eax
mov ecx, dword [ebp - 0x768]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48bdab
jmp 0x48c06e
cmp dword [ebp - 0x76c], 4
je 0x48bdb9
jmp 0x48c06e
cmp dword [ebp - 0x774], 0x4c
je 0x48bdc7
jmp 0x48c06e
push 0
push 0
push 0x14
mov edx, dword [ebp - 0x768]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x770], eax
cmp dword [ebp - 0x770], 0xffffffff
jne 0x48bdee
jmp 0x48c06e
push 0
lea eax, [ebp - 0x76c]
push eax
push 4
lea ecx, [ebp - 0x774]
push ecx
mov edx, dword [ebp - 0x768]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48be16
jmp 0x48c06e
cmp dword [ebp - 0x76c], 4
je 0x48be24
jmp 0x48c06e
push 0
push 0
push 0x4c
mov eax, dword [ebp - 0x768]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x770], eax
cmp dword [ebp - 0x770], 0xffffffff
jne 0x48be4b
jmp 0x48c06e
mov ecx, dword [ebp - 0x774]
and ecx, 1
je 0x48bec2
xor edx, edx
mov word [ebp - 0x77c], dx
push 0
lea eax, [ebp - 0x76c]
push eax
push 2
lea ecx, [ebp - 0x77c]
push ecx
mov edx, dword [ebp - 0x768]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48be87
jmp 0x48c06e
cmp dword [ebp - 0x76c], 2
je 0x48be95
jmp 0x48c06e
push 1
push 0
movzx eax, word [ebp - 0x77c]
push eax
mov ecx, dword [ebp - 0x768]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x770], eax
cmp dword [ebp - 0x770], 0xffffffff
jne 0x48bec2
jmp 0x48c06e
push 1
push 0
push 0x10
mov edx, dword [ebp - 0x768]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x770], eax
cmp dword [ebp - 0x770], 0xffffffff
jne 0x48bee9
jmp 0x48c06e
push 0
lea eax, [ebp - 0x76c]
push eax
push 4
lea ecx, [ebp - 0x774]
push ecx
mov edx, dword [ebp - 0x768]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48bf11
jmp 0x48c06e
cmp dword [ebp - 0x76c], 4
je 0x48bf1f
jmp 0x48c06e
push 1
push 0
mov eax, dword [ebp - 0x774]
sub eax, 0x14
push eax
mov ecx, dword [ebp - 0x768]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x770], eax
cmp dword [ebp - 0x770], 0xffffffff
jne 0x48bf4e
jmp 0x48c06e
mov dword [ebp - 0x780], 0
mov byte [ebp - 0x761], 0
push 0x208
push 0
lea edx, [ebp - 0x308]
push edx
call sub.MSVCR120.dll_memset
add esp, 0xc
cmp dword [ebp - 0x780], 0x204
jb 0x48bfb0
push str.resolveShortcutFromFile_buffer_is_too_small
push 0x7b4
push str.utility::usystem::resolveShortcutFromFile
call fcn.004800e0
add esp, 0xc
push 0x208
push 0
lea eax, [ebp - 0x308]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
jmp 0x48c009
push 0
lea ecx, [ebp - 0x76c]
push ecx
push 1
lea edx, [ebp - 0x761]
push edx
mov eax, dword [ebp - 0x768]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48bfd8
jmp 0x48c06e
mov ecx, dword [ebp - 0x780]
mov dl, byte [ebp - 0x761]
mov byte [ebp + ecx - 0x308], dl
mov eax, dword [ebp - 0x780]
add eax, 1
mov dword [ebp - 0x780], eax
movsx ecx, byte [ebp - 0x761]
test ecx, ecx
jne 0x48bf75
lea edx, [ebp - 0x308]
push edx
lea ecx, [ebp - 0x748]
call fcn.004240a0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x748]
push eax
lea ecx, [ebp - 0x760]
push ecx
call fcn.0048e750
add esp, 8
mov dword [ebp - 0x784], eax
mov edx, dword [ebp - 0x784]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00426d20
lea ecx, [ebp - 0x760]
call fcn.00409900
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x748]
call fcn.00424180
mov dword [ebp - 0x778], 0
mov eax, dword [ebp - 0x768]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x778]
mov dword [ebp - 0x794], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x730]
call fcn.00409900
mov eax, dword [ebp - 0x794]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ecbfa
mov esp, ebp
pop ebp
ret