Function at 0x4014a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb0
push ebx
push esi
lea ebx, [ebp - 0x4c]
mov esi, 0x46b4c4
mov eax, 0x46b6e8
call fcn.0045f2ec
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x150]
push 0x104
push ecx
mov dword [0x47989c], edx
call sub.kernel32.dll_GetSystemDirectoryA
mov word [ebx + 0x10], 8
lea edx, [ebp - 0x150]
lea eax, [ebp - 4]
call fcn.0046a050
mov edx, eax
inc dword [ebx + 0x1c]
mov eax, 0x47978c
call fcn.0046a168
dec dword [ebx + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0046a138
push 0x104
lea ecx, [ebp - 0x150]
push ecx
call sub.kernel32.dll_GetWindowsDirectoryA
mov word [ebx + 0x10], 0x14
lea edx, [ebp - 0x150]
lea eax, [ebp - 8]
call fcn.0046a050
mov edx, eax
inc dword [ebx + 0x1c]
mov eax, 0x479788
call fcn.0046a168
dec dword [ebx + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0046a138
mov word [ebx + 0x10], 0x20
mov edx, esi
lea eax, [ebp - 0xc]
call fcn.0046a050
inc dword [ebx + 0x1c]
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, 0x479788
inc dword [ebx + 0x1c]
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0046a17c
lea edx, [ebp - 0x10]
mov eax, 0x479790
call fcn.0046a168
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0046a138
dec dword [ebx + 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0046a138
mov word [ebx + 0x10], 0x2c
lea edx, [esi + 6]
lea eax, [ebp - 0x14]
call fcn.0046a050
inc dword [ebx + 0x1c]
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, 0x479790
inc dword [ebx + 0x1c]
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.0046a17c
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x1c]
mov edx, dword [0x47989c]
call fcn.0046a050
mov edx, eax
inc dword [ebx + 0x1c]
xor eax, eax
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x20]
inc dword [ebx + 0x1c]
pop eax
call fcn.0046a17c
lea edx, [ebp - 0x20]
mov eax, 0x479794
call fcn.0046a168
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0046a138
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0046a138
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0046a138
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0046a138
mov word [ebx + 0x10], 0x38
lea edx, [esi + 8]
lea eax, [ebp - 0x24]
call fcn.0046a050
inc dword [ebx + 0x1c]
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, 0x479794
inc dword [ebx + 0x1c]
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x28]
call fcn.0046a17c
lea edx, [ebp - 0x28]
mov eax, 0x479798
call fcn.0046a168
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.0046a138
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0046a138
cmp dword [0x479790], 0
je 0x4016b1
mov ecx, dword [0x479790]
jmp 0x4016b4
lea ecx, [esi + 0x10]
push ecx
call fcn.004608c4
pop ecx
cmp dword [0x479794], 0
je 0x4016cb
mov eax, dword [0x479794]
jmp 0x4016ce
lea eax, [esi + 0x11]
push eax
call fcn.004608c4
pop ecx
call fcn.00401db0
test al, al
jne 0x40171c
call fcn.004018a0
cmp eax, 1
jne 0x4016f8
mov al, 1
mov edx, dword [ebx]
mov dword fs:[0], edx
jmp 0x401800
test eax, eax
jne 0x40170c
xor eax, eax
mov edx, dword [ebx]
mov dword fs:[0], edx
jmp 0x401800
xor eax, eax
mov edx, dword [ebx]
mov dword fs:[0], edx
jmp 0x401800
mov eax, dword [0x47989c]
mov edx, 0x4798a0
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x401744
test cl, cl
je 0x401742
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x401744
add eax, 2
add edx, 2
test cl, cl
jne 0x401726
je 0x401796
cmp dword [0x479798], 0
je 0x401754
mov eax, dword [0x479798]
jmp 0x401757
lea eax, [esi + 0x12]
push eax
call fcn.00461b48
pop ecx
call fcn.004018a0
cmp eax, 1
jne 0x401778
mov al, 1
mov edx, dword [ebx]
mov dword fs:[0], edx
jmp 0x401800
test eax, eax
jne 0x401789
xor eax, eax
mov edx, dword [ebx]
mov dword fs:[0], edx
jmp 0x401800
xor eax, eax
mov edx, dword [ebx]
mov dword fs:[0], edx
jmp 0x401800
push 0x479924
call fcn.00402874
pop ecx
cmp al, 1
je 0x4017f5
cmp dword [0x479798], 0
je 0x4017b6
mov ecx, dword [0x479798]
jmp 0x4017b9
lea ecx, [esi + 0x13]
push ecx
call fcn.00461b48
pop ecx
call fcn.004018a0
cmp eax, 1
jne 0x4017d7
mov al, 1
mov edx, dword [ebx]
mov dword fs:[0], edx
jmp 0x401800
test eax, eax
jne 0x4017e8
xor eax, eax
mov edx, dword [ebx]
mov dword fs:[0], edx
jmp 0x401800
xor eax, eax
mov edx, dword [ebx]
mov dword fs:[0], edx
jmp 0x401800
mov al, 1
mov edx, dword [ebx]
mov dword fs:[0], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret