Function at 0x41ba8c
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.00524727
mov ebx, dword [edi + 0x14]
cmp ebx, 2
mov dword [ebp - 0x14], ebx
jb 0x41bac9
mov ebx, 2
lea esi, [edi + 4]
mov dword [ebp - 0x78], 0x53474c
mov dword [ebp - 0x74], 0x53c104
mov dword [ebp - 0x70], ebp
mov dword [ebp - 0x68], esp
mov dword [ebp - 0x70], 0x41be09
lea eax, [ebp - 0x94]
call fcn.005353b5
test ebx, ebx
je 0x41bb00
cmp dword [edi + 0x18], 0xf
ja 0x41bb07
mov eax, esi
jmp 0x41bb0a
xor ecx, ecx
mov edi, dword [ebp - 0x14]
jmp 0x41bb3d
mov eax, dword [edi + 4]
mov edi, dword [ebp - 0x14]
xor ecx, ecx
nop word cs:[eax + eax]
movzx edx, byte [ecx + 0x53be47]
cmp byte [eax + ecx], dl
jne 0x41bb31
inc ecx
cmp ebx, ecx
jne 0x41bb1c
xor ecx, ecx
jmp 0x41bb3d
mov ecx, 0xffffffff
jl 0x41bb3d
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 0x41bbe3
cmp edi, 2
jae 0x41bbee
test edx, edx
je 0x41bbf8
test ebx, ebx
je 0x41bb91
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x18], 0xf
jbe 0x41bb77
mov esi, dword [ecx + 4]
xor ecx, ecx
nop dword [eax]
movzx edx, byte [ecx + 0x53be4a]
cmp byte [esi + ecx], dl
jne 0x41bc8c
inc ecx
cmp ebx, ecx
jne 0x41bb7c
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 0x41bc08
cmp edi, 2
jae 0x41bc0f
test edx, edx
je 0x41bc15
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], 0x53be4d
call fcn.00403830
jmp 0x41bdee
mov ecx, eax
cmp edi, 2
jb 0x41bb5f
mov edx, ecx
test edx, edx
jne 0x41bb67
mov eax, 0x1a
mov esi, dword [ebp + 8]
lea ebx, [ebp - 0x2bc]
jmp 0x41bc17
mov ecx, eax
cmp edi, 2
jb 0x41bbae
mov edx, ecx
test edx, edx
jne 0x41bbb2
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 0x41bc75
mov dword [ebp - 0x98], 7
mov dword [ebp - 0x9c], 0
mov word [ebp - 0xac], 0
cmp word [ebp - 0x2bc], 0
je 0x41bcaa
mov dword [esp], ebx
call fcn.005243e8
jmp 0x41bcac
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
mov byte [esi + 4], 0
jmp 0x41bdee
mov ecx, 0xffffffff
mov esi, dword [ebp + 8]
lea ebx, [ebp - 0x2bc]
jl 0x41bb9c
mov ecx, 1
jmp 0x41bb9c
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.0041cd04
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], 0
cmp word [ebp - 0x2bc], 0
je 0x41bcf4
mov dword [esp], ebx
call fcn.005243e8
jmp 0x41bcf6
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.0041cd04
mov dword [ebp - 0x8c], 2
lea eax, [ebp - 0x5c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x34]
mov dword [esp], eax
call fcn.00418e90
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.00403830
cmp dword [ebp - 0x10], 0
mov esi, dword [ebp + 8]
je 0x41bda4
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x28]
sub ecx, eax
cmp ecx, 0x1000
mov eax, dword [ebp - 0x10]
jb 0x41bd87
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 4]
mov dword [esp], eax
call fcn.0051a4c8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x41bdc6
mov eax, dword [ebp - 0x58]
lea ecx, [ecx + ecx + 2]
cmp ecx, 0x1000
jb 0x41bdbe
mov eax, dword [eax - 4]
mov dword [esp], eax
call fcn.0051a4c8
mov ecx, dword [ebp - 0x98]
cmp ecx, 8
jb 0x41bdee
mov eax, dword [ebp - 0xac]
lea ecx, [ecx + ecx + 2]
cmp ecx, 0x1000
jb 0x41bde6
mov eax, dword [eax - 4]
mov dword [esp], eax
call fcn.0051a4c8
lea eax, [ebp - 0x94]
mov dword [esp], eax
call fcn.005353d6
mov eax, esi
add esp, 0x2cc
pop esi
pop edi
pop ebx
pop ebp
ret