Function at 0x405b68
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea4
push ebx
push esi
mov dword [ebp - 0x14], edx
mov esi, eax
lea ebx, [ebp - 0x5c]
mov eax, 0x495178
call fcn.00473c74
cmp byte [esi + 0x3fc], 0
je 0x405c59
mov word [ebx + 0x10], 8
xor edx, edx
mov dword [ebp - 4], edx
lea edx, [ebp - 4]
inc dword [ebx + 0x1c]
mov eax, dword [0x4a5490]
mov eax, dword [eax]
call fcn.0044a2a8
lea eax, [ebp - 4]
mov eax, dword [eax]
xor edx, edx
mov dword [ebp - 8], edx
lea edx, [ebp - 8]
inc dword [ebx + 0x1c]
call fcn.0046923c
lea eax, [ebp - 8]
push eax
mov edx, 0x493d94
lea eax, [ebp - 0xc]
call fcn.004914e8
inc dword [ebx + 0x1c]
xor eax, eax
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0xc]
inc dword [ebx + 0x1c]
lea ecx, [ebp - 0x10]
pop eax
call fcn.00491654
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x14]
call fcn.0049162c
mov eax, dword [ebp - 0x14]
mov edx, 2
mov word [ebx + 0x10], 0x14
push eax
lea eax, [ebp - 0x10]
dec dword [ebx + 0x1c]
call fcn.004915fc
dec dword [ebx + 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004915fc
dec dword [ebx + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004915fc
dec dword [ebx + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004915fc
pop eax
mov word [ebx + 0x10], 8
inc dword [ebx + 0x1c]
mov edx, dword [ebx]
mov dword fs:[0], edx
jmp 0x405e11
mov word [ebx + 0x10], 0x20
xor ecx, ecx
mov dword [ebp - 0x18], ecx
inc dword [ebx + 0x1c]
mov word [ebx + 0x10], 0x2c
push 0xff
lea eax, [ebp - 0x15c]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
lea edx, [ebp - 0x15c]
push edx
call fcn.00473a38
pop ecx
cmp eax, 3
jne 0x405d0c
mov word [ebx + 0x10], 0x38
mov edx, 0x493da1
lea eax, [ebp - 0x20]
call fcn.004914e8
inc dword [ebx + 0x1c]
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x15c]
lea eax, [ebp - 0x1c]
call fcn.004914e8
inc dword [ebx + 0x1c]
xor ecx, ecx
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x24]
inc dword [ebx + 0x1c]
pop edx
call fcn.00491654
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x18]
call fcn.0049162c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004915fc
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004915fc
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004915fc
jmp 0x405dcb
mov word [ebx + 0x10], 0x44
mov edx, 0x493dae
lea eax, [ebp - 0x2c]
call fcn.004914e8
inc dword [ebx + 0x1c]
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x15c]
lea eax, [ebp - 0x28]
call fcn.004914e8
inc dword [ebx + 0x1c]
xor ecx, ecx
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x30]
inc dword [ebx + 0x1c]
pop edx
call fcn.00491654
lea eax, [ebp - 0x30]
push eax
mov edx, str.Ascd_tmp.ini
lea eax, [ebp - 0x34]
call fcn.004914e8
inc dword [ebx + 0x1c]
xor eax, eax
mov dword [ebp - 0x38], eax
lea edx, [ebp - 0x34]
inc dword [ebx + 0x1c]
lea ecx, [ebp - 0x38]
pop eax
call fcn.00491654
lea edx, [ebp - 0x38]
lea eax, [ebp - 0x18]
call fcn.0049162c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.004915fc
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.004915fc
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.004915fc
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.004915fc
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004915fc
mov word [ebx + 0x10], 0x50
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.0049162c
mov eax, dword [ebp - 0x14]
mov edx, 2
mov word [ebx + 0x10], 0x5c
push eax
lea eax, [ebp - 0x18]
dec dword [ebx + 0x1c]
call fcn.004915fc
pop eax
mov word [ebx + 0x10], 0x50
inc dword [ebx + 0x1c]
mov edx, dword [ebx]
mov dword fs:[0], edx
jmp 0x405e11
pop esi
pop ebx
mov esp, ebp
pop ebp
ret