Function at 0x401fc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
push esi
mov esi, dword [ebp + 8]
push edi
movzx eax, word [esi]
push 2
pop edi
cmp eax, 0x30
jb 0x401fe9
cmp eax, 0x39
ja 0x401fe9
push esi
call fcn.0041bcde
pop ecx
mov ecx, eax
jmp 0x402047
push 0x20
pop ecx
or eax, ecx
sub eax, 0x64
je 0x402033
sub eax, 0xc
je 0x402020
sub eax, 3
je 0x402012
dec eax
jne 0x4022b0
mov ax, word [esi + 2]
push 0x18
or ax, cx
pop ecx
push 7
jmp 0x40203f
mov ax, word [esi + 2]
push 0x16
or ax, cx
pop ecx
push 0xb
jmp 0x40203f
mov ax, word [esi + 2]
or ax, cx
push 0x17
pop ecx
cmp ax, 0x75
cmove ecx, edi
jmp 0x402047
mov ax, word [esi + 2]
push 0x19
or ax, cx
pop ecx
push 0x10
cmp ax, 0x75
pop edx
cmove ecx, edx
push 0x2c
pop edx
jmp 0x402057
test ax, ax
je 0x4022b0
add esi, edi
movzx eax, word [esi]
cmp ax, dx
jne 0x40204c
xor edi, edi
push edi
push ecx
lea eax, [ebp - 0x27c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4022b0
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00410428
lea ecx, [ebp - 0x28]
call fcn.0041045f
lea ecx, [ebp - 0x4c]
call fcn.0041045f
lea ecx, [ebp - 0x40]
call fcn.0041045f
lea ecx, [ebp - 0x58]
call fcn.0041045f
lea ecx, [ebp - 0x10]
call fcn.0041045f
lea ecx, [ebp - 0x34]
call fcn.0041045f
lea ecx, [ebp - 0x64]
call fcn.0041045f
lea ecx, [ebp - 0x70]
call fcn.0041045f
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.0040252d
pop ecx
pop ecx
cmp dword [ebp - 0x24], edi
je 0x402265
lea ecx, [ebp - 0x4c]
push ecx
push eax
call fcn.0040252d
lea ecx, [ebp - 0x40]
push ecx
push eax
call fcn.0040252d
lea ecx, [ebp - 0x58]
push ecx
push eax
call fcn.0040252d
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.0040252d
lea ecx, [ebp - 0x34]
push ecx
push eax
call fcn.0040252d
lea ecx, [ebp - 0x64]
push ecx
push eax
call fcn.0040252d
lea ecx, [ebp - 0x70]
push ecx
push eax
call fcn.0040252d
push dword [ebp - 0x70]
call fcn.0041bcde
add esp, 0x3c
mov esi, eax
cmp dword [ebp - 0xc], edi
jne 0x40216b
lea eax, [ebp - 0x28]
push eax
call fcn.004026ff
pop ecx
mov ecx, dword [ebp - 0x28]
add ecx, 2
lea eax, [ecx + eax*2]
push eax
lea ecx, [ebp - 0x10]
call fcn.00410584
push 0x2e
lea ecx, [ebp - 0x10]
call fcn.00410b2b
test eax, eax
js 0x40216b
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov dword [ebp - 0xc], eax
mov word [ecx + eax*2], dx
push 0x5c
lea ecx, [ebp - 0x1c]
call fcn.004010a2
cmp dword [ebp - 0x3c], edi
je 0x402190
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004106e0
push 0x5c
lea ecx, [ebp - 0x1c]
call fcn.004010a2
push dword [ebp - 0x1c]
call fcn.00401e65
pop ecx
test eax, eax
je 0x402265
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004106e0
push str..lnk
lea ecx, [ebp - 0x1c]
call fcn.0041071e
lea eax, [ebp + 8]
push eax
push 0x4277a4
push 1
push edi
push 0x4277e4
mov dword [ebp + 8], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x402265
mov eax, dword [ebp + 8]
push dword [ebp - 0x28]
mov dword [ebp - 4], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp dword [ebp - 0x54], edi
je 0x4021fc
mov eax, dword [ebp + 8]
push dword [ebp - 0x58]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp dword [ebp - 0x48], edi
je 0x40220d
mov eax, dword [ebp + 8]
push dword [ebp - 0x4c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp dword [ebp - 0x30], edi
je 0x40221e
mov eax, dword [ebp + 8]
push dword [ebp - 0x34]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
cmp dword [ebp - 0x60], edi
je 0x402230
mov eax, dword [ebp + 8]
push esi
push dword [ebp - 0x64]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp + 8]
lea edx, [ebp - 4]
mov ecx, dword [eax]
push edx
push 0x4277c4
push eax
call dword [ecx]
test eax, eax
js 0x40225c
mov eax, dword [ebp - 4]
push 1
push dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push dword [ebp - 0x70]
call fcn.004196d0
push dword [ebp - 0x64]
call fcn.004196d0
push dword [ebp - 0x34]
call fcn.004196d0
push dword [ebp - 0x10]
call fcn.004196d0
push dword [ebp - 0x58]
call fcn.004196d0
push dword [ebp - 0x40]
call fcn.004196d0
push dword [ebp - 0x4c]
call fcn.004196d0
push dword [ebp - 0x28]
call fcn.004196d0
push dword [ebp - 0x1c]
call fcn.004196d0
add esp, 0x24
pop edi
xor eax, eax
pop esi
leave
ret