Function at 0x419c04
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x419c0d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov eax, dword [ebp - 8]
call fcn.00404288
mov eax, dword [ebp + 8]
call fcn.00404288
xor eax, eax
push ebp
push 0x419e8a
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x419e5a
lea eax, [ebp - 0xc]
mov edx, 0x104
call fcn.00404424
lea eax, [ebp - 0xc]
call fcn.004042f0
xor ecx, ecx
mov edx, 0x104
call fcn.00402bc8
lea eax, [ebp - 0xc]
call fcn.004042f0
push eax
push 0
push 0
push 0x1a
push 0
call sub.SHFolder.dll_SHGetFolderPathA
test eax, eax
jne 0x419e5a
mov eax, dword [ebp - 0xc]
call fcn.00404298
mov edx, eax
lea eax, [ebp - 0x20]
call fcn.00403ff4
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
mov ecx, 0x419ea4
call fcn.004040e4
mov eax, dword [ebp - 0x14]
call fcn.004076ec
test al, al
je 0x419e5a
push 2
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x413b88]
call fcn.00415c78
mov dword [ebp - 0x18], eax
xor edx, edx
push ebp
push 0x419e53
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx]
add eax, 1
adc edx, 0
mov edx, eax
lea eax, [ebp - 0xc]
call fcn.00404424
mov eax, dword [ebp - 0xc]
call fcn.00404098
push eax
lea eax, [ebp - 0xc]
call fcn.004042f0
xor ecx, ecx
pop edx
call fcn.00402bc8
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx]
push eax
lea eax, [ebp - 0xc]
call fcn.004042f0
mov edx, eax
mov eax, dword [ebp - 0x18]
pop ecx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0xc]
call fcn.00404298
mov edx, eax
lea eax, [ebp - 0x24]
call fcn.00403ff4
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x10]
call fcn.00406f6c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.004043dc
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
call fcn.004043dc
mov edi, eax
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.00406f6c
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x10]
call fcn.004043dc
mov esi, eax
xor eax, eax
cmp dword [ebp - 0x1c], 0
jle 0x419e3d
test edi, edi
jle 0x419e3d
test esi, esi
jle 0x419dd4
cmp esi, dword [ebp - 0x1c]
jle 0x419dd4
cmp edi, esi
jle 0x419dd4
cmp byte [ebp - 1], 0
je 0x419e10
mov eax, dword [ebp - 0xc]
cmp byte [eax + esi - 2], 0x3b
jne 0x419dbd
mov eax, ebx
call fcn.00404098
mov ecx, eax
inc ecx
mov edx, esi
dec edx
lea eax, [ebp - 0xc]
call fcn.00404338
jmp 0x419dd0
mov eax, ebx
call fcn.00404098
mov ecx, eax
lea eax, [ebp - 0xc]
mov edx, esi
call fcn.00404338
mov al, 1
jmp 0x419e10
cmp byte [ebp - 1], 0
jne 0x419e10
mov eax, dword [ebp - 0xc]
cmp byte [eax + edi - 2], 0x3b
jne 0x419df2
lea edx, [ebp - 0xc]
mov ecx, edi
mov eax, ebx
call fcn.00404380
jmp 0x419e0e
lea eax, [ebp - 0x2c]
mov ecx, ebx
mov edx, 0x419ed0
call fcn.004040e4
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0xc]
mov ecx, edi
call fcn.00404380
mov al, 1
test al, al
je 0x419e3d
push 0
push 0
mov eax, dword [ebp - 0x18]
call fcn.004159d4
mov eax, dword [ebp - 0xc]
call fcn.00404098
dec eax
push eax
lea eax, [ebp - 0xc]
call fcn.004042f0
mov edx, eax
mov eax, dword [ebp - 0x18]
pop ecx
mov ebx, dword [eax]
call dword [ebx + 0x10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419e5a
mov eax, dword [ebp - 0x18]
call fcn.0040318c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419e91
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.00403e20
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00403e20
lea eax, [ebp + 8]
call fcn.00403dfc
ret