Function at 0x4bc24b
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50bc7a
mov eax, dword fs:[0]
push eax
mov eax, 0x1030c
call fcn.004ec330
mov eax, dword [0x559540]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x102f4], edi
mov dword [ebp - 0x10318], eax
mov dword [ebp - 0x102f8], ebx
call fcn.004bba3f
test eax, eax
je 0x4bc52a
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x6c656853
push eax
mov dword [ebp - 0x18], 0x2e32336c
mov dword [ebp - 0x14], 0x6c6c64
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4bc73c
movdqa xmm0, xmmword [0x511110]
lea eax, [ebp - 0x34]
push eax
push edi
movdqu xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0x68746150
mov byte [ebp - 0x20], bl
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x178], eax
test eax, eax
je 0x4bc51e
lea ecx, [ebp - 0x102f8]
push ecx
push ebx
push ebx
push 0x514ebc
call eax
test eax, eax
js 0x4bc51e
push 0xb0
lea eax, [ebp - 0x10240]
push ebx
push eax
call fcn.004edc70
add esp, 0xc
lea ecx, [ebp - 0x10240]
inc ebx
push ebx
push 3
call fcn.004b8d50
movdqa xmm0, xmmword [0x511070]
lea eax, [ebp - 0x8c]
and dword [ebp - 4], 0
movdqu xmmword [ebp - 0x8c], xmm0
push eax
movdqa xmm0, xmmword [0x511040]
lea eax, [ebp - 0x10230]
push dword [ebp - 0x102f8]
movdqu xmmword [ebp - 0x7c], xmm0
push eax
movdqa xmm0, xmmword [0x511050]
movdqu xmmword [ebp - 0x6c], xmm0
mov dword [ebp - 0x3c], 0x2e315c5c
movdqa xmm0, xmmword [0x511060]
movdqu xmmword [ebp - 0x5c], xmm0
mov word [ebp - 0x38], 0x35
movdqa xmm0, xmmword [0x511140]
movdqu xmmword [ebp - 0x4c], xmm0
call fcn.004b80ec
pop ecx
pop ecx
push eax
call fcn.004b7e87
pop ecx
pop ecx
lea eax, [ebp - 0x10314]
push eax
lea ecx, [ebp - 0x10240]
call fcn.004c0497
cmp dword [eax + 0x14], 8
jb 0x4bc3cd
mov eax, dword [eax]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x4bc3ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 0x102f9], 0
cmp eax, 0xb7
jne 0x4bc3f4
mov byte [ebp - 0x102f9], bl
push 0
push ebx
lea ecx, [ebp - 0x10314]
call fcn.004bdd8c
cmp byte [ebp - 0x102f9], 0
je 0x4bc507
push dword [ebp - 0x102f4]
lea eax, [ebp - 0x10230]
push 0x510cac
push eax
call fcn.004b7e87
pop ecx
pop ecx
push eax
call fcn.004b82cc
pop ecx
pop ecx
lea eax, [ebp - 0x10314]
push eax
lea ecx, [ebp - 0x10240]
call fcn.004c0497
cmp dword [eax + 0x14], 8
jb 0x4bc44a
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0xc0120089
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push ebx
lea ecx, [ebp - 0x10314]
mov esi, eax
call fcn.004bdd8c
cmp esi, 0xffffffff
je 0x4bc507
xor eax, eax
push eax
push eax
push eax
push esi
mov dword [ebp - 0x102f4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x102f4]
push eax
push 0x10000
lea eax, [ebp - 0x10190]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4bc507
cmp dword [ebp - 0x102f4], 0
jbe 0x4bc507
push dword [ebp - 0x102f4]
and dword [ebp - 0x10304], 0
lea eax, [ebp - 0x10190]
push eax
lea ecx, [ebp - 0x10314]
mov dword [ebp - 0x10300], 0xf
mov byte [ebp - 0x10314], 0
call fcn.004be2ee
mov ecx, dword [ebp - 0x10318]
lea eax, [ebp - 0x10314]
push eax
call fcn.004b94df
push 0
push ebx
lea ecx, [ebp - 0x10314]
call fcn.004bdd48
push dword [ebp - 0x102f8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [ebp - 0x10240]
call fcn.004b9674
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4bc73c
lea eax, [ebp - 0x190]
push eax
push ebx
push ebx
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x4bc73c
push 0xb0
lea eax, [ebp - 0x102f0]
push ebx
push eax
call fcn.004edc70
add esp, 0xc
lea ecx, [ebp - 0x102f0]
xor ebx, ebx
inc ebx
push ebx
push 3
call fcn.004b8d50
movdqa xmm0, xmmword [0x511070]
lea eax, [ebp - 0x8c]
movdqu xmmword [ebp - 0x8c], xmm0
push eax
movdqa xmm0, xmmword [0x511040]
lea eax, [ebp - 0x190]
movdqu xmmword [ebp - 0x7c], xmm0
push eax
movdqa xmm0, xmmword [0x511050]
lea eax, [ebp - 0x102e0]
movdqu xmmword [ebp - 0x6c], xmm0
push eax
movdqa xmm0, xmmword [0x511060]
movdqu xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 4], ebx
movdqa xmm0, xmmword [0x511140]
movdqu xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x3c], 0x2e315c5c
mov word [ebp - 0x38], 0x35
call fcn.004b7e87
pop ecx
pop ecx
push eax
call fcn.004b7e87
pop ecx
pop ecx
lea eax, [ebp - 0x10314]
push eax
lea ecx, [ebp - 0x102f0]
call fcn.004c0497
cmp dword [eax + 0x14], 8
jb 0x4bc5fc
mov eax, dword [eax]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x4bc61d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 0x102f9], 0
cmp eax, 0xb7
jne 0x4bc623
mov byte [ebp - 0x102f9], bl
push 0
push ebx
lea ecx, [ebp - 0x10314]
call fcn.004bdd8c
cmp byte [ebp - 0x102f9], 0
je 0x4bc731
push edi
lea eax, [ebp - 0x102e0]
push 0x510cac
push eax
call fcn.004b7e87
pop ecx
pop ecx
push eax
call fcn.004b82cc
pop ecx
pop ecx
lea eax, [ebp - 0x10314]
push eax
lea ecx, [ebp - 0x102f0]
call fcn.004c0497
cmp dword [eax + 0x14], 8
jb 0x4bc674
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0xc0120089
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push ebx
lea ecx, [ebp - 0x10314]
mov esi, eax
call fcn.004bdd8c
cmp esi, 0xffffffff
je 0x4bc731
xor eax, eax
push eax
push eax
push eax
push esi
mov dword [ebp - 0x102f4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x102f4]
push eax
push 0x10000
lea eax, [ebp - 0x10190]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4bc731
cmp dword [ebp - 0x102f4], 0
jbe 0x4bc731
push dword [ebp - 0x102f4]
and dword [ebp - 0x10304], 0
lea eax, [ebp - 0x10190]
push eax
lea ecx, [ebp - 0x10314]
mov dword [ebp - 0x10300], 0xf
mov byte [ebp - 0x10314], 0
call fcn.004be2ee
mov ecx, dword [ebp - 0x10318]
lea eax, [ebp - 0x10314]
push eax
call fcn.004b94df
push 0
push ebx
lea ecx, [ebp - 0x10314]
call fcn.004bdd48
lea ecx, [ebp - 0x102f0]
call fcn.004b9674
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ebd2c
mov esp, ebp
pop ebp
ret 8