Function at 0x5b1720
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x5b1728
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x5b19d9
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
mov edx, 0x104
call fcn.00405320
push 0x104
mov eax, dword [ebp - 4]
call fcn.00405194
push eax
call sub.kernel32.dll_GetSystemDirectoryA
test eax, eax
jbe 0x5b19b1
mov eax, dword [ebp - 4]
call fcn.00405194
lea edx, [ebp - 0xc]
call fcn.0040d0f0
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.00404d6c
lea eax, [ebp - 4]
mov edx, 0x5b19f4
call fcn.00404f9c
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, 0x5b1a0c
call fcn.00404fe0
mov eax, dword [ebp - 0x10]
call fcn.005aeb90
lea ecx, [ebp - 8]
mov edx, 0x5b1a28
mov eax, dword [ebp - 4]
call fcn.005ae86c
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov edx, 0x5b1a0c
call fcn.00404fe0
mov eax, dword [ebp - 0x14]
call fcn.005aeb90
mov eax, dword [0x5cffbc]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
mov eax, dword [0x5cffbc]
mov eax, dword [eax]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x24]
mov ecx, 1
mov eax, 0x5b1a3c
call fcn.005aeb14
cmp dword [ebp - 8], 0
je 0x5b19b1
mov dl, 1
mov eax, dword [0x41bc08]
call fcn.00403d78
mov esi, eax
mov dl, 0x2e
mov eax, esi
call fcn.00420ad0
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.00420940
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, 2
jl 0x5b19aa
lea ecx, [ebp - 0x28]
xor edx, edx
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x28]
call fcn.0040c670
mov ebx, eax
add ebx, ebx
lea ebx, [ebx + ebx*4]
lea ecx, [ebp - 0x2c]
mov edx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x2c]
call fcn.0040c670
add ebx, eax
mov eax, dword [0x5cffbc]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
add eax, eax
lea eax, [eax + eax*4]
mov edx, dword [0x5cffbc]
mov edx, dword [edx]
add eax, dword [edx + 0x14]
cmp ebx, eax
setne bl
lea ecx, [ebp - 0x30]
xor edx, edx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x30]
call fcn.0040c670
add eax, eax
lea eax, [eax + eax*4]
push eax
lea ecx, [ebp - 0x34]
mov edx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x34]
call fcn.0040c670
pop edx
add edx, eax
cmp edx, 0x3f
jne 0x5b18f4
mov eax, dword [0x5cffbc]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
add eax, eax
lea eax, [eax + eax*4]
mov edx, dword [0x5cffbc]
mov edx, dword [edx]
add eax, dword [edx + 0x14]
cmp eax, 0x3e
jne 0x5b18f4
xor ebx, ebx
jmp 0x5b19aa
lea ecx, [ebp - 0x38]
xor edx, edx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x38]
call fcn.0040c670
add eax, eax
lea eax, [eax + eax*4]
push eax
lea ecx, [ebp - 0x3c]
mov edx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x3c]
call fcn.0040c670
pop edx
add edx, eax
cmp edx, 0x40
jne 0x5b1950
mov eax, dword [0x5cffbc]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
add eax, eax
lea eax, [eax + eax*4]
mov edx, dword [0x5cffbc]
mov edx, dword [edx]
add eax, dword [edx + 0x14]
cmp eax, 0x3e
jne 0x5b1950
xor ebx, ebx
jmp 0x5b19aa
lea ecx, [ebp - 0x40]
xor edx, edx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x40]
call fcn.0040c670
add eax, eax
lea eax, [eax + eax*4]
push eax
lea ecx, [ebp - 0x44]
mov edx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x44]
call fcn.0040c670
pop edx
add edx, eax
cmp edx, 0x64
jne 0x5b19aa
mov eax, dword [0x5cffbc]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
add eax, eax
lea eax, [eax + eax*4]
mov edx, dword [0x5cffbc]
mov edx, dword [edx]
add eax, dword [edx + 0x14]
cmp eax, 0x3e
jne 0x5b19aa
xor ebx, ebx
mov eax, esi
call fcn.00403da8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b19e0
lea eax, [ebp - 0x44]
mov edx, 8
call fcn.00404cf8
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00404cf8
ret