Function at 0x41a604
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2cc
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x2bc]
mov dword [esp], eax
mov dword [esp + 8], 0x208
mov dword [esp + 4], 0
call fcn.0044d15b
mov ebx, dword [edi + 0x14]
cmp ebx, 2
mov dword [ebp - 0x14], ebx
jb 0x41a641
mov ebx, 2
lea esi, [edi + 4]
mov dword [ebp - 0x78], 0x45e02c
mov dword [ebp - 0x74], 0x464020
mov dword [ebp - 0x70], ebp
mov dword [ebp - 0x68], esp
mov dword [ebp - 0x70], 0x41a981
lea eax, [ebp - 0x94]
call fcn.0045ec95
test ebx, ebx
je 0x41a678
cmp dword [edi + 0x18], 0xf
ja 0x41a67f
mov eax, esi
jmp 0x41a682
xor ecx, ecx
mov edi, dword [ebp - 0x14]
jmp 0x41a6b5
mov eax, dword [edi + 4]
mov edi, dword [ebp - 0x14]
xor ecx, ecx
nop word cs:[eax + eax]
movzx edx, byte [ecx + 0x463d64]
cmp byte [eax + ecx], dl
jne 0x41a6a9
inc ecx
cmp ebx, ecx
jne 0x41a694
xor ecx, ecx
jmp 0x41a6b5
mov ecx, 0xffffffff
jl 0x41a6b5
mov ecx, 1
cmp ecx, 1
sbb edx, edx
or edx, ecx
xor eax, eax
cmp edi, 2
setne al
test ecx, ecx
mov ecx, edx
je 0x41a75b
cmp edi, 2
jae 0x41a766
test edx, edx
je 0x41a770
test ebx, ebx
je 0x41a709
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x18], 0xf
jbe 0x41a6ef
mov esi, dword [ecx + 4]
xor ecx, ecx
nop dword [eax]
movzx edx, byte [ecx + 0x463d67]
cmp byte [esi + ecx], dl
jne 0x41a804
inc ecx
cmp ebx, ecx
jne 0x41a6f4
xor ecx, ecx
mov esi, dword [ebp + 8]
lea ebx, [ebp - 0x2bc]
cmp ecx, 1
sbb edx, edx
or edx, ecx
test ecx, ecx
mov ecx, edx
je 0x41a780
cmp edi, 2
jae 0x41a787
test edx, edx
je 0x41a78d
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
mov byte [esi + 4], 0
mov dword [ebp - 0x8c], 0xffffffff
mov dword [esp], esi
mov dword [esp + 4], 0x463d6a
call fcn.0040237c
jmp 0x41a966
mov ecx, eax
cmp edi, 2
jb 0x41a6d7
mov edx, ecx
test edx, edx
jne 0x41a6df
mov eax, 0x1a
mov esi, dword [ebp + 8]
lea ebx, [ebp - 0x2bc]
jmp 0x41a78f
mov ecx, eax
cmp edi, 2
jb 0x41a726
mov edx, ecx
test edx, edx
jne 0x41a72a
xor eax, eax
mov dword [ebp - 0x8c], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp + 0xc], 0
mov dword [esp], 0
call sub.SHELL32.DLL_SHGetSpecialFolderPathW
sub esp, 0x10
test eax, eax
je 0x41a7ed
mov dword [ebp - 0x98], 7
mov dword [ebp - 0x9c], 0
mov word [ebp - 0xac], 0
cmp word [ebp - 0x2bc], 0
je 0x41a822
mov dword [esp], ebx
call fcn.0044ce1c
jmp 0x41a824
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
mov byte [esi + 4], 0
jmp 0x41a966
mov ecx, 0xffffffff
mov esi, dword [ebp + 8]
lea ebx, [ebp - 0x2bc]
jl 0x41a714
mov ecx, 1
jmp 0x41a714
xor eax, eax
mov dword [ebp - 0x8c], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
lea eax, [ebp - 0xb0]
mov dword [esp], eax
call fcn.0041b87c
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], 0
cmp word [ebp - 0x2bc], 0
je 0x41a86c
mov dword [esp], ebx
call fcn.0044ce1c
jmp 0x41a86e
xor eax, eax
mov dword [ebp - 0x8c], 1
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call fcn.0041b87c
mov dword [ebp - 0x8c], 2
lea eax, [ebp - 0x5c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x34]
mov dword [esp], eax
call fcn.00417d80
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov ecx, eax
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], 0
mov byte [ecx + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x8c], 3
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.0040237c
cmp dword [ebp - 0x10], 0
mov esi, dword [ebp + 8]
je 0x41a91c
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x28]
sub ecx, eax
cmp ecx, 0x1000
mov eax, dword [ebp - 0x10]
jb 0x41a8ff
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 4]
mov dword [esp], eax
call fcn.00440ea4
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x41a93e
mov eax, dword [ebp - 0x58]
lea ecx, [ecx + ecx + 2]
cmp ecx, 0x1000
jb 0x41a936
mov eax, dword [eax - 4]
mov dword [esp], eax
call fcn.00440ea4
mov ecx, dword [ebp - 0x98]
cmp ecx, 8
jb 0x41a966
mov eax, dword [ebp - 0xac]
lea ecx, [ecx + ecx + 2]
cmp ecx, 0x1000
jb 0x41a95e
mov eax, dword [eax - 4]
mov dword [esp], eax
call fcn.00440ea4
lea eax, [ebp - 0x94]
mov dword [esp], eax
call fcn.0045ecb6
mov eax, esi
add esp, 0x2cc
pop esi
pop edi
pop ebx
pop ebp
ret