Function at 0x4bada8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x10a
push 0
push 0
dec ecx
jne 0x4badb1
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405f48
mov eax, dword [ebp - 8]
call fcn.00405f48
mov eax, dword [ebp - 0xc]
call fcn.00405f48
xor eax, eax
push ebp
push 0x4bb202
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
xor edx, edx
call fcn.00405f60
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00405fb4
lea eax, [ebp - 0x18]
xor edx, edx
call fcn.00405fb4
mov dword [ebp - 0x2c], 1
cmp dword [ebp - 0x2c], 1
jne 0x4bae36
push dword [ebp - 4]
push 0x4bb220
push dword [ebp - 8]
push 0x4bb234
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004063ec
cmp dword [ebp - 0x2c], 2
jne 0x4baec1
push 0
push 0x23
lea eax, [ebp - 0x842]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathW
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x842]
mov ecx, 0x401
call fcn.00406148
lea ecx, [ebp - 0x848]
mov edx, 1
mov eax, dword [ebp - 0x1c]
call fcn.004b916c
mov eax, dword [ebp - 0x848]
mov edx, 0x4bb24c
call fcn.00406594
je 0x4bae97
lea eax, [ebp - 0x1c]
mov edx, 0x4bb24c
call fcn.0040629c
lea eax, [ebp - 0x1c]
mov edx, 0x4bb25c
call fcn.0040629c
push dword [ebp - 0x1c]
push 0x4bb220
push dword [ebp - 8]
push 0x4bb234
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004063ec
mov eax, dword [ebp - 0x10]
call fcn.0040cd44
test al, al
je 0x4bafbc
mov dl, 1
mov eax, dword [0x41f298]
call fcn.004247b4
mov dword [ebp - 0x28], eax
xor eax, eax
push ebp
push 0x4baf8a
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x68]
lea edx, [ebp - 0x850]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x850]
lea edx, [ebp - 0x84c]
call fcn.004bdc1c
mov edx, dword [ebp - 0x84c]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
lea eax, [ebp - 0x854]
push eax
lea edx, [ebp - 0x858]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x858]
mov ecx, 0x4bb278
mov edx, 0x4bb2a8
call fcn.004bd7a8
mov edx, dword [ebp - 0x854]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
cmp dword [ebp - 0x2c], 1
jne 0x4baf6f
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
cmp dword [ebp - 0x2c], 2
jne 0x4baf80
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4bafb4
mov eax, dword [ebp - 0x28]
call fcn.0040428c
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 3
jne 0x4bae13
lea eax, [ebp - 0x20]
push eax
mov ecx, 0x4bb2dc
mov edx, 0x4bb310
mov eax, dword [ebp - 0x14]
call fcn.004bd7a8
lea eax, [ebp - 0x24]
push eax
mov ecx, 0x4bb2dc
mov edx, 0x4bb310
mov eax, dword [ebp - 0x18]
call fcn.004bd7a8
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4bb012
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4bb012
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call fcn.004056d0
test eax, eax
je 0x4bb01b
sub eax, 4
mov eax, dword [eax]
cmp eax, 5
jle 0x4bb04e
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
call fcn.00406594
je 0x4bb037
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00405fb4
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
call fcn.00406594
je 0x4bb04e
lea eax, [ebp - 0x18]
xor edx, edx
call fcn.00405fb4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4bb06b
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4bb06b
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x14]
call fcn.004056d0
test eax, eax
je 0x4bb074
sub eax, 4
mov eax, dword [eax]
cmp eax, 0xa
jg 0x4bb0a8
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4bb096
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4bb096
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x18]
call fcn.004056d0
test eax, eax
je 0x4bb09f
sub eax, 4
mov eax, dword [eax]
cmp eax, 0xa
jle 0x4bb1d7
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4bb0c5
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4bb0c5
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x14]
call fcn.004056d0
test eax, eax
je 0x4bb0ce
sub eax, 4
mov eax, dword [eax]
cmp eax, 0xa
jg 0x4bb10e
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4bb0f0
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4bb0f0
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x18]
call fcn.004056d0
test eax, eax
je 0x4bb0f9
sub eax, 4
mov eax, dword [eax]
cmp eax, 0xa
jle 0x4bb10e
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
call fcn.00405f60
jmp 0x4bb1d7
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4bb12b
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4bb12b
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x14]
call fcn.004056d0
test eax, eax
je 0x4bb134
sub eax, 4
mov eax, dword [eax]
cmp eax, 0xa
jle 0x4bb171
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4bb156
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4bb156
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x18]
call fcn.004056d0
test eax, eax
je 0x4bb15f
sub eax, 4
mov eax, dword [eax]
cmp eax, 0xa
jg 0x4bb171
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
call fcn.00405f60
jmp 0x4bb1d7
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x20]
call fcn.0040c940
test al, al
jne 0x4bb18e
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x24]
call fcn.0040c940
test al, al
jne 0x4bb1ab
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ebp - 0x34]
jne 0x4bb1bd
cmp eax, dword [ebp - 0x38]
jb 0x4bb1cc
jmp 0x4bb1bf
jl 0x4bb1cc
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
call fcn.00405f60
jmp 0x4bb1d7
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
call fcn.00405f60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bb209
lea eax, [ebp - 0x858]
mov edx, 5
call fcn.00405f58
lea eax, [ebp - 0x24]
mov edx, 9
call fcn.00405f58
ret