Function at 0x4a19a4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x91
push 0
push 0
dec ecx
jne 0x4a19ac
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4a1d00
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebx + 4], 0xffffffff
push 0x105
lea eax, [ebp - 0x452]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
xor edx, edx
mov eax, 0xf
call fcn.0049678c
mov edi, eax
mov dword [ebp - 0x128], 0x128
lea edx, [ebp - 0x128]
mov eax, edi
call fcn.004967ac
inc dword [ebx + 4]
mov eax, dword [ebx + 4]
inc eax
push eax
lea eax, [ebx + 8]
mov ecx, 1
mov edx, dword [0x4a16a4]
call fcn.0040641c
add esp, 4
mov eax, dword [ebx + 4]
inc eax
push eax
lea eax, [ebx + 0x14]
mov ecx, 1
mov edx, dword [0x4a1710]
call fcn.0040641c
add esp, 4
mov eax, dword [ebx + 4]
inc eax
push eax
lea eax, [ebx + 0xc]
mov ecx, 1
mov edx, dword [0x4a16c8]
call fcn.0040641c
add esp, 4
mov eax, dword [ebx + 4]
inc eax
push eax
lea eax, [ebx + 0x10]
mov ecx, 1
mov edx, dword [0x4a16ec]
call fcn.0040641c
add esp, 4
mov edx, dword [ebp - 0x120]
mov eax, 8
call fcn.0049678c
mov esi, eax
mov dword [ebp - 0x34c], 0x224
lea edx, [ebp - 0x34c]
mov eax, esi
call fcn.004967ec
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x45c]
lea edx, [ebp - 0x22c]
mov ecx, 0x104
call fcn.00404e84
mov eax, dword [ebp - 0x45c]
mov ecx, 4
mov edx, 1
call fcn.00405148
mov eax, dword [ebp - 0x458]
mov edx, 0x4a1d18
call fcn.00405034
jne 0x4a1b3b
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 4]
lea eax, [eax + edx*4]
push eax
lea eax, [ebp - 0x460]
lea edx, [ebp - 0x22c]
mov ecx, 0x104
call fcn.00404e84
mov eax, dword [ebp - 0x460]
call fcn.00404ef0
sub eax, 4
push eax
lea eax, [ebp - 0x464]
lea edx, [ebp - 0x22c]
mov ecx, 0x104
call fcn.00404e84
mov eax, dword [ebp - 0x464]
mov edx, 5
pop ecx
call fcn.00405148
jmp 0x4a1c23
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x46c]
lea edx, [ebp - 0x22c]
mov ecx, 0x104
call fcn.00404e84
mov eax, dword [ebp - 0x46c]
mov ecx, 0xb
mov edx, 1
call fcn.00405148
mov eax, dword [ebp - 0x468]
mov edx, 0x4a1d28
call fcn.00405034
jne 0x4a1c0a
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x474]
lea edx, [ebp - 0x22c]
mov ecx, 0x104
call fcn.00404e84
mov eax, dword [ebp - 0x474]
call fcn.00404ef0
sub eax, 0xb
push eax
lea eax, [ebp - 0x478]
lea edx, [ebp - 0x22c]
mov ecx, 0x104
call fcn.00404e84
mov eax, dword [ebp - 0x478]
mov edx, 0xc
pop ecx
call fcn.00405148
mov eax, dword [ebp - 0x470]
push eax
lea eax, [ebp - 0x47c]
lea edx, [ebp - 0x452]
mov ecx, 0x106
call fcn.00404e84
mov edx, dword [ebp - 0x47c]
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
lea eax, [eax + ecx*4]
pop ecx
call fcn.00404f3c
jmp 0x4a1c23
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 4]
lea eax, [eax + edx*4]
lea edx, [ebp - 0x22c]
mov ecx, 0x104
call fcn.00404e84
lea edx, [ebp - 0x480]
mov eax, dword [ebp - 0x114]
call fcn.004a17bc
mov edx, dword [ebp - 0x480]
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 4]
lea eax, [eax + ecx*4]
call fcn.00404c70
cmp dword [ebp - 0x120], 0
jne 0x4a1c77
call sub.kernel32.dll_GetCurrentProcessId
lea edx, [ebp - 0x484]
call fcn.004a17bc
mov edx, dword [ebp - 0x484]
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 4]
lea eax, [eax + ecx*4]
call fcn.00404c70
jmp 0x4a1c9c
lea edx, [ebp - 0x488]
mov eax, dword [ebp - 0x120]
call fcn.004a17bc
mov edx, dword [ebp - 0x488]
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 4]
lea eax, [eax + ecx*4]
call fcn.00404c70
lea edx, [ebp - 0x48c]
mov eax, dword [ebp - 0x10c]
call fcn.004a17bc
mov edx, dword [ebp - 0x48c]
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 4]
lea eax, [eax + ecx*4]
call fcn.00404c70
push esi
call sub.kernel32.dll_CloseHandle_1
lea edx, [ebp - 0x128]
mov eax, edi
call fcn.004967cc
test eax, eax
jne 0x4a1a04
push edi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1d07
lea eax, [ebp - 0x48c]
mov edx, 0xe
call fcn.00404c40
ret