Function at 0x40a9d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ce34
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
mov eax, dword [0x4d506c]
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
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
mov dword [ebp - 4], eax
lea esi, [ecx + 0x25c]
cmp dword [ecx + 0x258], 0x40
jne 0x40aaaa
cmp dword [0x4d890c], eax
je 0x40aa7b
cmp dword [0x4d8850], 8
mov eax, 0x4d883c
cmovae eax, dword [0x4d883c]
cmp dword [esi + 0x14], 8
jb 0x40aa52
mov ecx, dword [esi]
jmp 0x40aa54
mov ecx, esi
push eax
push ecx
push 0x4b366c
lea eax, [ebp - 0x2f0]
push eax
call fcn.004196a0
add esp, 0x10
lea ecx, [ebp - 0x248]
push eax
call fcn.0040d730
jmp 0x40ab34
cmp dword [0x4d8868], 8
mov eax, 0x4d8854
cmovae eax, dword [0x4d8854]
cmp dword [esi + 0x14], 8
jb 0x40aa9f
mov ecx, dword [esi]
push eax
push ecx
push 0x4b3678
jmp 0x40aa5b
push eax
mov ecx, esi
push ecx
push 0x4b3678
jmp 0x40aa5b
cmp dword [0x4d8868], 8
mov eax, 0x4d8854
cmovae eax, dword [0x4d8854]
cmp dword [esi + 0x14], 8
jb 0x40aac7
mov ecx, dword [esi]
jmp 0x40aac9
mov ecx, esi
push eax
push ecx
lea eax, [ebp - 0x2f0]
push 0x4b3684
push eax
call fcn.004196a0
add esp, 0x10
mov edi, eax
lea eax, [ebp - 0x248]
cmp eax, edi
je 0x40ab30
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x40ab07
mov ecx, dword [ebp - 0x248]
inc edx
push 2
call fcn.004044e0
add esp, 4
xor eax, eax
mov dword [ebp - 0x234], 7
push edi
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
call fcn.0040ddf0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2dc]
cmp edx, 8
jb 0x40ab50
mov ecx, dword [ebp - 0x2f0]
inc edx
push 2
call fcn.004044e0
add esp, 4
lea ecx, [ebp - 0x2f0]
call fcn.00417800
mov byte [ebp - 4], 2
mov edi, 0x4d889c
cmp dword [0x4d88b0], 8
mov ecx, edi
cmovae ecx, dword [0x4d889c]
cmp dword [eax + 0x14], 8
jb 0x40ab7c
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0x2d8]
push 0x4b3690
push eax
call fcn.004196a0
add esp, 0x10
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x2dc]
cmp edx, 8
jb 0x40abb2
mov ecx, dword [ebp - 0x2f0]
inc edx
push 2
call fcn.004044e0
add esp, 4
xor eax, eax
mov dword [ebp - 0x2dc], 7
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x2e0], 0
mov word [ebp - 0x2f0], ax
call fcn.004175a0
mov byte [ebp - 4], 5
mov ecx, edi
cmp dword [0x4d88b0], 8
cmovae ecx, dword [0x4d889c]
cmp dword [eax + 0x14], 8
jb 0x40abf6
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0x2c0]
push 0x4b36a0
push eax
call fcn.004196a0
add esp, 0x10
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x40ac2c
mov ecx, dword [ebp - 0x230]
inc edx
push 2
call fcn.004044e0
add esp, 4
xor eax, eax
mov dword [ebp - 0x21c], 7
lea ecx, [ebp - 0x2f0]
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.00417800
mov byte [ebp - 4], 8
mov ebx, edi
cmp dword [0x4d88b0], 8
mov edx, edi
mov dword [ebp - 0x2f4], edi
cmovae ebx, dword [0x4d889c]
cmovae edx, dword [0x4d889c]
cmp dword [eax + 0x14], 8
jb 0x40ac7f
mov eax, dword [eax]
push ebx
push edx
push eax
lea eax, [ebp - 0x2a8]
push str._s_s_s.lnk
push eax
call fcn.004196a0
add esp, 0x14
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x2dc]
cmp edx, 8
jb 0x40acb6
mov ecx, dword [ebp - 0x2f0]
inc edx
push 2
call fcn.004044e0
add esp, 4
xor eax, eax
mov dword [ebp - 0x2dc], 7
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x2e0], 0
mov word [ebp - 0x2f0], ax
call fcn.00417800
mov byte [ebp - 4], 0xb
mov ecx, edi
cmp dword [0x4d88b0], 8
cmovae ecx, dword [0x4d889c]
cmp dword [eax + 0x14], 8
jb 0x40acfa
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0x290]
push str._s_s_
push eax
call fcn.004196a0
add esp, 0x10
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x40ad30
mov ecx, dword [ebp - 0x230]
inc edx
push 2
call fcn.004044e0
add esp, 4
xor eax, eax
mov dword [ebp - 0x21c], 7
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
jb 0x40ad55
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x278]
push 0x4b36ec
push eax
call fcn.004196a0
add esp, 0xc
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x2d8]
cmp dword [ebp - 0x2c4], 8
cmovae eax, dword [ebp - 0x2d8]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0
push 0x19
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x260]
push 0x4b3708
push eax
call fcn.004196a0
add esp, 0xc
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x260]
cmp dword [ebp - 0x24c], 8
cmovae eax, dword [ebp - 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
cmp eax, 0x10
jne 0x40aebd
cmp dword [0x4d88b0], 8
lea eax, [ebp - 0x260]
cmovae edi, dword [0x4d889c]
cmp dword [ebp - 0x24c], 8
push edi
cmovae eax, dword [ebp - 0x260]
push eax
lea eax, [ebp - 0x230]
push str._s_s.lnk
push eax
call fcn.004196a0
add esp, 0x10
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x2f0]
cmovae eax, dword [ebp - 0x248]
push eax
call fcn.00405720
sub esp, 0x18
mov byte [ebp - 4], 0x11
mov ecx, esp
mov dword [ebp - 0x2f4], esp
push 0x4b372c
call fcn.00405720
sub esp, 0x18
mov byte [ebp - 4], 0x12
mov ecx, esp
push 0x4b3730
call fcn.00405720
push ecx
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0x2f0]
push eax
call fcn.0040c360
mov edx, dword [ebp - 0x2dc]
cmp edx, 8
jb 0x40ae9d
mov ecx, dword [ebp - 0x2f0]
inc edx
push 2
call fcn.004044e0
add esp, 4
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x40aebd
mov ecx, dword [ebp - 0x230]
inc edx
push 2
call fcn.004044e0
add esp, 4
cmp dword [ebp - 0x2ac], 8
lea edx, [ebp - 0x2c0]
mov dword [ebp - 0x2dc], 7
cmovae edx, dword [ebp - 0x2c0]
xor eax, eax
mov dword [ebp - 0x2e0], 0
mov word [ebp - 0x2f0], ax
cmp word [edx], ax
jne 0x40aef7
xor ecx, ecx
jmp 0x40af0f
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40af00
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2f0]
call fcn.00405bf0
mov byte [ebp - 4], 0x13
lea edx, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
mov dword [ebp - 0x21c], 7
cmovae edx, dword [ebp - 0x248]
xor eax, eax
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [edx], ax
jne 0x40af5a
xor ecx, ecx
jmp 0x40af6f
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40af60
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x230]
call fcn.00405bf0
sub esp, 0x18
mov byte [ebp - 4], 0x14
mov ecx, esp
mov dword [ebp - 0x2f8], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x40afb1
mov eax, dword [ecx]
jmp 0x40afb3
mov eax, ecx
xor edx, edx
push edx
push 0x4b3734
mov word [eax], dx
call fcn.00405bf0
sub esp, 0x18
mov byte [ebp - 4], 0x15
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x40aff2
mov eax, dword [ecx]
jmp 0x40aff4
mov eax, ecx
xor edx, edx
push edx
push 0x4b3738
mov word [eax], dx
call fcn.00405bf0
push ecx
lea eax, [ebp - 0x2f0]
mov byte [ebp - 4], 0x14
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0040c360
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x40b038
mov ecx, dword [ebp - 0x230]
inc edx
push 2
call fcn.004044e0
add esp, 4
xor eax, eax
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x2dc]
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp edx, 8
jb 0x40b075
mov ecx, dword [ebp - 0x2f0]
inc edx
push 2
call fcn.004044e0
add esp, 4
cmp dword [ebp - 0x294], 8
lea edx, [ebp - 0x2a8]
mov dword [ebp - 0x2dc], 7
cmovae edx, dword [ebp - 0x2a8]
xor eax, eax
mov dword [ebp - 0x2e0], 0
mov word [ebp - 0x2f0], ax
cmp word [edx], ax
jne 0x40b0af
xor ecx, ecx
jmp 0x40b0c3
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b0b4
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2f0]
call fcn.00405bf0
mov byte [ebp - 4], 0x16
lea edx, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
mov dword [ebp - 0x21c], 7
cmovae edx, dword [ebp - 0x248]
xor eax, eax
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [edx], ax
jne 0x40b10e
xor ecx, ecx
jmp 0x40b122
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b113
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x230]
call fcn.00405bf0
sub esp, 0x18
mov byte [ebp - 4], 0x17
mov ecx, esp
mov dword [ebp - 0x2f8], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x40b164
mov eax, dword [ecx]
jmp 0x40b166
mov eax, ecx
xor edx, edx
push edx
push 0x4b373c
mov word [eax], dx
call fcn.00405bf0
sub esp, 0x18
mov byte [ebp - 4], 0x18
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x40b1a5
mov eax, dword [ecx]
jmp 0x40b1a7
mov eax, ecx
xor edx, edx
push edx
push 0x4b3740
mov word [eax], dx
call fcn.00405bf0
push ecx
lea eax, [ebp - 0x2f0]
mov byte [ebp - 4], 0x17
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0040c360
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x40b1eb
mov ecx, dword [ebp - 0x230]
inc edx
push 2
call fcn.004044e0
add esp, 4
xor eax, eax
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x2dc]
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp edx, 8
jb 0x40b228
mov ecx, dword [ebp - 0x2f0]
inc edx
push 2
call fcn.004044e0
add esp, 4
cmp dword [ebp - 0x27c], 8
lea edx, [ebp - 0x290]
mov dword [ebp - 0x2dc], 7
cmovae edx, dword [ebp - 0x290]
xor eax, eax
mov dword [ebp - 0x2e0], 0
mov word [ebp - 0x2f0], ax
cmp word [edx], ax
jne 0x40b262
xor ecx, ecx
jmp 0x40b276
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b267
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2f0]
call fcn.00405bf0
mov byte [ebp - 4], 0x19
lea edx, [ebp - 0x278]
cmp dword [ebp - 0x264], 8
mov dword [ebp - 0x21c], 7
cmovae edx, dword [ebp - 0x278]
xor eax, eax
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [edx], ax
jne 0x40b2c1
xor ecx, ecx
jmp 0x40b2d5
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b2c6
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x230]
call fcn.00405bf0
sub esp, 0x18
mov byte [ebp - 4], 0x1a
mov ecx, esp
mov dword [ebp - 0x2f8], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x40b317
mov eax, dword [ecx]
jmp 0x40b319
mov eax, ecx
xor edx, edx
push edx
push 0x4b3744
mov word [eax], dx
call fcn.00405bf0
sub esp, 0x18
mov byte [ebp - 4], 0x1b
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x40b358
mov eax, dword [ecx]
jmp 0x40b35a
mov eax, ecx
xor edx, edx
push edx
push 0x4b3748
mov word [eax], dx
call fcn.00405bf0
push ecx
lea eax, [ebp - 0x2f0]
mov byte [ebp - 4], 0x1a
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0040c360
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x40b39e
mov ecx, dword [ebp - 0x230]
inc edx
push 2
call fcn.004044e0
add esp, 4
mov edx, dword [ebp - 0x2dc]
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp edx, 8
jb 0x40b3d7
mov ecx, dword [ebp - 0x2f0]
inc edx
push 2
call fcn.004044e0
add esp, 4
mov edx, dword [ebp - 0x24c]
cmp edx, 8
jb 0x40b3f3
mov ecx, dword [ebp - 0x260]
inc edx
push 2
call fcn.004044e0
add esp, 4
mov edx, dword [ebp - 0x264]
xor eax, eax
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
cmp edx, 8
jb 0x40b42c
mov ecx, dword [ebp - 0x278]
inc edx
push 2
call fcn.004044e0
add esp, 4
mov edx, dword [ebp - 0x27c]
xor eax, eax
mov dword [ebp - 0x264], 7
mov dword [ebp - 0x268], 0
mov word [ebp - 0x278], ax
cmp edx, 8
jb 0x40b465
mov ecx, dword [ebp - 0x290]
inc edx
push 2
call fcn.004044e0
add esp, 4
mov edx, dword [ebp - 0x294]
xor eax, eax
mov dword [ebp - 0x27c], 7
mov dword [ebp - 0x280], 0
mov word [ebp - 0x290], ax
cmp edx, 8
jb 0x40b49e
mov ecx, dword [ebp - 0x2a8]
inc edx
push 2
call fcn.004044e0
add esp, 4
mov edx, dword [ebp - 0x2ac]
xor eax, eax
mov dword [ebp - 0x294], 7
mov dword [ebp - 0x298], 0
mov word [ebp - 0x2a8], ax
cmp edx, 8
jb 0x40b4d7
mov ecx, dword [ebp - 0x2c0]
inc edx
push 2
call fcn.004044e0
add esp, 4
mov edx, dword [ebp - 0x2c4]
xor eax, eax
mov dword [ebp - 0x2ac], 7
mov dword [ebp - 0x2b0], 0
mov word [ebp - 0x2c0], ax
cmp edx, 8
jb 0x40b510
mov ecx, dword [ebp - 0x2d8]
inc edx
push 2
call fcn.004044e0
add esp, 4
mov edx, dword [ebp - 0x234]
xor eax, eax
mov dword [ebp - 0x2c4], 7
mov dword [ebp - 0x2c8], 0
mov word [ebp - 0x2d8], ax
cmp edx, 8
jb 0x40b549
mov ecx, dword [ebp - 0x248]
inc edx
push 2
call fcn.004044e0
add esp, 4
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.0049abdf
mov esp, ebp
pop ebp
ret