Function at 0x4095c0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x46f292
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x48e820]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48e820]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
mov edi, ecx
xor ebp, ebp
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], ebp
call fcn.0043adc8
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x409621
push 0x80004005
call fcn.0040fef0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x14c], ebp
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x40969c
lea edx, [esp + 0x28]
push edx
push 2
push ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x409690
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x40967f
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x1c]
call fcn.00410440
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esi - 0xc]
cmp ecx, ebp
jne 0x409700
push 0x47b3d4
mov ecx, edi
call fcn.00410560
mov dword [esp + 0x148], 0xffffffff
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4096d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.004540ed
add esp, 0x138
ret
lea eax, [ecx - 1]
cmp eax, ebp
jl 0x409a79
cmp eax, ecx
jg 0x409a79
mov al, byte [eax + esi]
cmp al, 0x5c
mov ebx, 1
je 0x40972e
push ebx
push 0x47a9d8
lea ecx, [esp + 0x20]
call fcn.0040ecb0
call fcn.0043adc8
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x409748
push 0x80004005
call fcn.0040fef0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x14c], bl
call fcn.004104e0
push 0x20
push 0x47af3c
lea ecx, [esp + 0x24]
call fcn.0040ecb0
mov esi, dword [esp + 0x1c]
lea edi, [esp + 0x20]
call fcn.00404a90
mov byte [esp + 0x148], 2
mov edx, dword [esp + 0x20]
mov eax, dword [edx - 0xc]
cmp eax, ebp
jne 0x409802
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
call fcn.004104e0
push 0x1a
push 0x47af60
lea ecx, [esp + 0x24]
call fcn.0040ecb0
mov esi, dword [esp + 0x1c]
lea edi, [esp + 0x2c]
call fcn.00404a90
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x14c], 3
call fcn.004104e0
mov byte [esp + 0x148], 2
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409802
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
cmp dword [eax - 0xc], ebp
je 0x409882
add eax, 0xfffffff0
push eax
call fcn.00410330
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x14c], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
add esp, 4
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409847
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x148], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40986b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x148], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
jmp 0x4096bd
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x4098e2
lea edx, [esp + 0x28]
push edx
push 0x17
push ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x4098d6
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x4098c5
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x1c]
call fcn.00410440
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edi, dword [esp + 0x18]
mov ecx, dword [edi - 0xc]
cmp ecx, ebp
jne 0x40997a
mov ebp, dword [esp + 0x30]
push 0x47b3d4
mov ecx, ebp
call fcn.00410560
mov byte [esp + 0x148], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409928
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x148], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40994c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x148], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409973
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
jmp 0x4096d8
lea eax, [ecx - 1]
cmp eax, ebp
jl 0x409a79
cmp eax, ecx
jg 0x409a79
cmp byte [eax + edi], 0x5c
je 0x4099a1
push 0x47a9d8
lea ecx, [esp + 0x1c]
call fcn.0040e580
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x20]
call fcn.004104e0
push 0x47af3c
lea ecx, [esp + 0x20]
call fcn.0040e580
mov esi, dword [esp + 0x1c]
lea edi, [esp + 0x2c]
call fcn.00404a90
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x14c], 4
call fcn.004104e0
mov byte [esp + 0x148], 2
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409a04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
cmp dword [ecx - 0xc], ebp
jne 0x409a70
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x20]
call fcn.004104e0
push 0x47af7c
lea ecx, [esp + 0x20]
call fcn.0040e580
mov esi, dword [esp + 0x1c]
lea edi, [esp + 0x2c]
call fcn.00404a90
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x14c], 5
call fcn.004104e0
mov byte [esp + 0x148], 2
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409a70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
jmp 0x40980b
push 0x80070057
call fcn.0040fef0
int3