Function at 0x491b60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x491b68
push ecx
push ebx
push esi
push edi
mov eax, 0x491888
call fcn.00406394
xor eax, eax
push ebp
push 0x492197
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x492172
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x18]
mov eax, 1
call fcn.00402af8
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.004082cc
mov edx, dword [ebp - 0x14]
mov eax, 0x496d04
call fcn.00404220
lea edx, [ebp - 0x20]
mov eax, 2
call fcn.00402af8
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.004082cc
mov edx, dword [ebp - 0x1c]
mov eax, 0x496d08
call fcn.00404220
lea eax, [ebp - 0x24]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [0x496d04]
call fcn.004046ec
mov eax, dword [ebp - 0x24]
mov edx, 0x4921b0
call fcn.004045d8
je 0x491c58
lea eax, [ebp - 0x28]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [0x496d04]
call fcn.004046ec
mov eax, dword [ebp - 0x28]
mov edx, 0x4921bc
call fcn.004045d8
je 0x491c58
lea eax, [ebp - 0x2c]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [0x496d04]
call fcn.004046ec
mov eax, dword [ebp - 0x2c]
mov edx, 0x4921c8
call fcn.004045d8
jne 0x491c60
mov eax, dword [0x494ec8]
mov byte [eax], 0
lea eax, [ebp - 0x30]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [0x496d04]
call fcn.004046ec
mov eax, dword [ebp - 0x30]
mov edx, 0x4921d4
call fcn.004045d8
je 0x491cd5
lea eax, [ebp - 0x34]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [0x496d04]
call fcn.004046ec
mov eax, dword [ebp - 0x34]
mov edx, 0x4921e0
call fcn.004045d8
je 0x491cd5
lea eax, [ebp - 0x38]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [0x496d04]
call fcn.004046ec
mov eax, dword [ebp - 0x38]
mov edx, 0x4921ec
call fcn.004045d8
jne 0x491cdd
mov eax, dword [0x494ec8]
mov byte [eax], 1
lea eax, [ebp - 0x3c]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [0x496d04]
call fcn.004046ec
mov eax, dword [ebp - 0x3c]
mov edx, 0x4921f8
call fcn.004045d8
je 0x491d5b
lea eax, [ebp - 0x40]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [0x496d04]
call fcn.004046ec
mov eax, dword [ebp - 0x40]
mov edx, 0x492204
call fcn.004045d8
je 0x491d5b
lea eax, [ebp - 0x44]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [0x496d04]
call fcn.004046ec
mov eax, dword [ebp - 0x44]
mov edx, 0x492210
call fcn.004045d8
je 0x491d5b
cmp dword [0x496d04], 0
jne 0x491d63
mov eax, dword [0x494ec8]
mov byte [eax], 2
mov eax, dword [0x494ec8]
cmp byte [eax], 0
jne 0x491e55
mov eax, 0x496d28
mov edx, 0x104
call fcn.00404818
push 0x104
mov eax, dword [0x496d28]
call fcn.0040468c
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov dword [0x496d2c], eax
mov eax, 0x496d28
mov edx, dword [0x496d2c]
call fcn.00404818
mov eax, dword [0x496d28]
call fcn.0040448c
test eax, eax
jle 0x491dde
mov eax, dword [0x496d28]
call fcn.0040448c
mov edx, dword [0x496d28]
cmp byte [edx + eax - 1], 0x5c
je 0x491dde
mov eax, 0x496d28
mov edx, 0x49221c
call fcn.00404494
lea eax, [ebp - 0x48]
mov ecx, 0x492228
mov edx, dword [0x496d28]
call fcn.004044d8
mov eax, dword [ebp - 0x48]
call fcn.0040468c
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [0x496d30], eax
cmp dword [0x496d30], 0
je 0x491e50
push 0x492230
mov eax, dword [0x496d30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x496d34], eax
cmp dword [0x496d34], 0
je 0x491e45
push 0
push 0
mov eax, dword [0x496d08]
call fcn.00408ae4
push eax
push 0x492244
call dword [0x496d34]
mov eax, dword [0x496d30]
push eax
call sub.kernel32.dll_FreeLibrary_1
call fcn.00404058
lea edx, [ebp - 0x50]
mov eax, dword [0x494ef4]
mov eax, dword [eax]
call fcn.00461ef0
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
call fcn.00408f8c
lea eax, [ebp - 0x4c]
mov edx, 0x492254
call fcn.00404494
mov eax, dword [ebp - 0x4c]
call fcn.0040468c
push eax
push 1
push 0
push 0
call sub.kernel32.dll_CreateSemaphoreA
mov dword [0x496d00], eax
cmp dword [0x496d00], 0
je 0x491eba
call sub.kernel32.dll_GetLastError
cmp eax, 0xb7
jne 0x491eba
mov eax, dword [0x496d00]
push eax
call sub.kernel32.dll_CloseHandle
call fcn.00404058
mov eax, dword [0x494ef4]
mov eax, dword [eax]
call fcn.00461848
mov eax, dword [0x494ef4]
mov eax, dword [eax]
call fcn.00461734
mov eax, dword [0x494ec8]
cmp byte [eax], 1
jne 0x492115
mov eax, dword [0x496d08]
call fcn.00408ae4
mov dword [0x496d0c], eax
jmp 0x491efd
mov eax, dword [0x494ef4]
mov eax, dword [eax]
call fcn.00461734
mov eax, dword [0x496d0c]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x491ef1
push 0x496d10
mov eax, dword [0x496d0c]
push eax
call sub.user32.dll_GetWindowRect
mov eax, dword [0x496d18]
sub eax, dword [0x496d10]
inc eax
mov dword [0x496d20], eax
mov eax, dword [0x496d1c]
sub eax, dword [0x496d14]
inc eax
mov dword [0x496d24], eax
mov dl, 1
mov eax, dword [0x422db0]
call fcn.00424d74
mov dword [0x496d5c], eax
push 0x20
lea edx, [ebp - 0x54]
mov eax, dword [0x494ef4]
mov eax, dword [eax]
call fcn.00461ef0
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x418df8]
call fcn.0041d168
mov dword [0x496d38], eax
xor eax, eax
push ebp
push 0x4920fe
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x496d38]
mov edx, dword [eax]
call dword [edx]
sub eax, 0x28
sbb edx, 0
push edx
push eax
mov eax, dword [0x496d38]
call fcn.0041ccd4
mov edx, 0x496d44
mov ecx, 0x14
mov eax, dword [0x496d38]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov dword [0x496d40], eax
cmp dword [0x496d40], 0x14
je 0x491fd1
call fcn.00403c30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49217c
lea eax, [ebp - 0x5c]
mov edx, 0x496d44
mov ecx, 0x14
call fcn.0040443c
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x58]
call fcn.0040851c
mov eax, dword [ebp - 0x58]
xor edx, edx
call fcn.00408b20
mov dword [0x496d3c], eax
mov eax, dword [0x496d38]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [0x496d3c]
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
sub eax, 0x28
sbb edx, 0
push edx
push eax
mov eax, dword [0x496d38]
call fcn.0041ccd4
mov eax, dword [0x496d0c]
push eax
call sub.user32.dll_GetDC
mov edx, eax
mov eax, dword [0x496d5c]
call fcn.00425764
xor edx, edx
mov eax, dword [0x496d38]
call fcn.0041d044
mov dword [0x496d58], eax
xor eax, eax
push ebp
push 0x4920ab
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x496d24]
push eax
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x496d20]
xor edx, edx
xor eax, eax
call fcn.004197dc
lea edx, [ebp - 0x6c]
mov eax, dword [0x496d58]
mov eax, dword [eax + 0x168]
mov ecx, dword [eax + 0xc]
mov eax, dword [0x496d5c]
call fcn.0042540c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4920cd
mov eax, dword [0x496d58]
call fcn.004033f8
ret
mov eax, dword [0x494ec8]
cmp byte [eax], 2
jne 0x492139
mov ecx, dword [0x494f84]
mov eax, dword [0x494ef4]
mov eax, dword [eax]
mov edx, dword [0x4900f8]
call fcn.00461860
jmp 0x492151
mov ecx, dword [0x494df0]
mov eax, dword [0x494ef4]
mov eax, dword [eax]
mov edx, dword [0x48d508]
call fcn.00461860
mov eax, dword [0x494ef4]
mov eax, dword [eax]
call fcn.004618e0
mov eax, dword [0x496d00]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49217c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49219e
lea eax, [ebp - 0x5c]
mov edx, 0x13
call fcn.004041f0
ret