Function at 0x40e360
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x46ddc6
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x490d1c]
xor eax, esp
mov dword [esp + 0x22c], eax
push esi
mov eax, dword [0x490d1c]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
push 0x208
lea eax, [esp + 0x30]
push 0
push eax
call fcn.00455e70
add esp, 0xc
push 0x104
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x14]
call fcn.00401e60
push str.Microsoft.NETFramework.
lea ecx, [esp + 0x14]
mov dword [esp + 0x244], 0
call fcn.0040e2b0
lea ecx, [esp + 0x14]
call fcn.0043d765
mov eax, dword [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x248], 1
call fcn.0043d7fd
test eax, eax
je 0x40e597
lea esp, [esp]
lea ecx, [esp + 0x14]
call fcn.0043d447
mov edx, dword [esp + 0x14]
mov esi, eax
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x18]
call eax
test eax, eax
je 0x40e58f
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x18]
call fcn.0043daff
mov ecx, dword [esp + 8]
cmp dword [ecx - 0xc], 0
jl 0x40e573
push str.v1.0
push ecx
call fcn.00455a19
mov ecx, dword [esp + 0x10]
add esp, 8
test eax, eax
je 0x40e471
sub eax, ecx
sar eax, 1
jne 0x40e471
mov byte [0x4921b8], 1
cmp dword [ecx - 0xc], 0
jl 0x40e573
push str.v1.1
push ecx
call fcn.00455a19
mov ecx, dword [esp + 0x10]
add esp, 8
test eax, eax
je 0x40e49e
sub eax, ecx
sar eax, 1
jne 0x40e49e
mov byte [0x4921b9], 1
cmp dword [ecx - 0xc], 0
jl 0x40e573
push str.v2.0
push ecx
call fcn.00455a19
mov ecx, dword [esp + 0x10]
add esp, 8
test eax, eax
je 0x40e4cb
sub eax, ecx
sar eax, 1
jne 0x40e4cb
mov byte [0x4921ba], 1
cmp dword [ecx - 0xc], 0
jl 0x40e573
push str.v3.0
push ecx
call fcn.00455a19
mov ecx, dword [esp + 0x10]
add esp, 8
test eax, eax
je 0x40e4f8
sub eax, ecx
sar eax, 1
jne 0x40e4f8
mov byte [0x4921bb], 1
cmp dword [ecx - 0xc], 0
jl 0x40e573
push str.v3.5
push ecx
call fcn.00455a19
mov ecx, dword [esp + 0x10]
add esp, 8
test eax, eax
je 0x40e521
sub eax, ecx
sar eax, 1
jne 0x40e521
mov byte [0x4921bc], 1
cmp dword [ecx - 0xc], 0
jl 0x40e573
push str.v4.0
push ecx
call fcn.00455a19
mov ecx, dword [esp + 0x10]
add esp, 8
test eax, eax
je 0x40e54a
sub eax, ecx
sar eax, 1
jne 0x40e54a
mov byte [0x4921bd], 1
cmp dword [ecx - 0xc], 0
jl 0x40e573
push str.v4.5
push ecx
call fcn.00455a19
mov ecx, dword [esp + 0x10]
add esp, 8
test eax, eax
je 0x40e573
sub eax, ecx
sar eax, 1
jne 0x40e573
mov byte [0x4921be], 1
lea eax, [ecx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e58f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x40e410
lea ecx, [esp + 0x14]
mov byte [esp + 0x240], 0
call fcn.0043d78e
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x240], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e5d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.00455930
add esp, 0x23c
ret