Function at 0x4a19e0
Capabilities:
Contain obfuscated stackstrings
Get common file path
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x104
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor ebx, ebx
cmp eax, ebx
je 0x4a1c53
cmp eax, 0x104
jae 0x4a1c53
lea ecx, [ebp - 0x284]
push ecx
mov dword [ebp - 0x284], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
jne 0x4a1a60
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x4a1a48
mov eax, 1
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret
mov eax, str.SysWOW64Shell32.dll
cmp dword [ebp - 0x284], ebx
jne 0x4a1a72
mov eax, 0x535274
push edi
push eax
lea edx, [ebp - 0x260]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x4a1a96
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
jmp 0x4a1a98
xor edi, edi
mov ecx, 0x5a4d
push esi
mov esi, dword [edi + 0x3c]
cmp word [edi], cx
jne 0x4a1c4c
cmp dword [esi + edi], 0x4550
jne 0x4a1c4c
lea edx, [ebp - 5]
push edx
mov dword [ebp - 0x58], 0x730055
mov dword [ebp - 0x54], 0x720065
mov dword [ebp - 0x50], 0x430020
mov dword [ebp - 0x4c], 0x6f0068
mov dword [ebp - 0x48], 0x630069
mov dword [ebp - 0x44], 0x200065
mov dword [ebp - 0x40], 0x650073
mov dword [ebp - 0x3c], 0x200074
mov dword [ebp - 0x38], 0x690076
mov dword [ebp - 0x34], 0x200061
mov dword [ebp - 0x30], 0x690057
mov dword [ebp - 0x2c], 0x64006e
mov dword [ebp - 0x28], 0x77006f
mov dword [ebp - 0x24], 0x200073
mov dword [ebp - 0x20], 0x730055
mov dword [ebp - 0x1c], 0x720065
mov dword [ebp - 0x18], 0x450020
mov dword [ebp - 0x14], 0x700078
mov dword [ebp - 0x10], 0x720065
mov dword [ebp - 0xc], 0x650069
mov dword [ebp - 8], 0x63006e
mov esi, dword [esi + edi + 0x50]
lea eax, [ebp - 0x58]
push eax
add esi, edi
push esi
push edi
call fcn.0049e400
add esp, 0x10
mov dword [ebp - 0x28c], eax
mov dword [ebp - 0x288], ebx
cmp eax, esi
je 0x4a1c27
lea ecx, [ebp - 0x288]
sub esi, eax
push ecx
sar esi, 1
push esi
push eax
call fcn.00478460
test eax, eax
js 0x4a1c27
mov esi, dword [ebp - 0x288]
add esi, 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
lea ecx, [ebp - 0x280]
call fcn.004a0c00
mov eax, dword [ebp - 0x280]
cmp eax, ebx
jne 0x4a1bd3
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x280]
call fcn.0049efd0
jmp 0x4a1c32
mov edx, dword [ebp - 0x28c]
push edx
shr esi, 1
push esi
push eax
call fcn.0049bd50
test eax, eax
js 0x4a1bf7
mov eax, dword [ebp - 0x280]
mov dword [ebp - 0x280], ebx
mov ebx, eax
jmp 0x4a1c02
push 0x13e
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x280]
call fcn.0049efd0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret
push 0x13e
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret
push 0x241
jmp 0x4a1c2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x4a1c62
mov eax, 1
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004b12f6
mov esp, ebp
pop ebp
ret