Function at 0x4060d3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449703
mov eax, dword fs:[0]
push eax
mov eax, 0x1074
call fcn.0043f800
mov eax, dword [0x45b1d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
test ebx, ebx
mov edi, ecx
mov dword [ebp - 0x1014], ebx
jne 0x40611a
xor eax, eax
jmp 0x406356
cmp dword [ebx], 0x44
jne 0x406113
cmp dword [ebx + 4], 1
jne 0x406113
mov esi, edi
call fcn.00406370
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x40613f
and dword [edi + 8], 0
mov dword [edi + 4], eax
jmp 0x4061c6
push 0x28
pop esi
push esi
lea eax, [ebp - 0x103c]
push 0
push eax
call fcn.0042d8b0
mov ecx, dword [ebx + 0x24]
mov dword [ebp - 0x103c], esi
xor esi, esi
inc esi
add esp, 0xc
mov dword [ebp - 0x1038], esi
call fcn.00408c33
mov dword [ebp - 0x1034], eax
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x1030], eax
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0x1024], eax
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x1020], eax
mov eax, dword [ebx + 0x40]
mov dword [ebp - 0x1018], eax
lea eax, [ebp - 0x103c]
push eax
mov dword [ebp - 0x102c], esi
mov dword [ebp - 0x1028], edi
mov dword [ebp - 0x101c], fcn.004063d3
call fcn.00418466
test eax, eax
pop ecx
mov dword [edi + 4], eax
je 0x406113
mov dword [edi + 8], esi
mov eax, dword [ebx + 8]
mov dword [edi + 0x18], eax
mov eax, dword [ebx + 0xc]
mov dword [edi + 0x1c], eax
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x20], eax
mov eax, dword [ebx + 0x14]
mov dword [edi + 0x24], eax
mov eax, dword [ebx + 0x18]
mov dword [edi + 0x28], eax
mov eax, dword [ebx + 0x1c]
mov dword [edi + 0x2c], eax
mov eax, dword [ebx + 0x20]
mov dword [edi + 0x30], eax
mov eax, dword [ebx + 0x24]
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x28]
mov dword [edi + 0x14], eax
mov eax, dword [ebx + 0x2c]
mov dword [edi + 0x808], eax
mov eax, dword [ebx + 0x30]
mov dword [edi + 0x10], eax
mov eax, dword [ebx + 0x28]
mov dword [edi + 0x14], eax
mov eax, dword [ebx + 0x40]
mov dword [edi + 0x820], eax
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x406227
cmp word [eax], 0
jne 0x40624c
and word [ebp - 0x1010], 0
lea eax, [ebp - 0x1010]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
and word [ebp - 0x12], 0
lea eax, [ebp - 0x1010]
lea esi, [edi + 0x7a4]
call fcn.0040210f
cmp dword [edi + 0x7b8], 0
je 0x406113
lea esi, [ebp - 0x1048]
lea ecx, [edi + 0x7a4]
call fcn.00401df6
call fcn.00401f9e
cmp word [eax], 0x5c
je 0x4062bc
lea esi, [ebp - 0x1048]
lea ecx, [edi + 0x7a4]
call fcn.00401df6
call fcn.00401f9e
cmp word [eax], 0x2f
je 0x4062bc
mov esi, 0x44d8a0
push esi
call fcn.0042de1b
pop ecx
mov ebx, eax
push esi
lea eax, [edi + 0x7a4]
call fcn.00401cd1
mov ebx, dword [ebp - 0x1014]
mov ebx, dword [ebx + 0x38]
test ebx, ebx
je 0x4062cb
cmp word [ebx], 0
mov eax, ebx
jne 0x4062d0
mov eax, str.update
lea esi, [edi + 0x7c0]
call fcn.0040210f
push esi
lea eax, [edi + 0x7a4]
push eax
lea eax, [ebp - 0x1080]
push eax
call fcn.00409ee6
add esp, 0xc
and dword [ebp - 4], 0
push 0x44d8a0
push eax
lea eax, [ebp - 0x1064]
push eax
call fcn.00405e08
add esp, 0xc
push 0xffffffffffffffff
lea ecx, [edi + 0x7dc]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 1
call fcn.00402089
push ebx
push 1
lea esi, [ebp - 0x1064]
call fcn.004022b6
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea esi, [ebp - 0x1080]
call fcn.004022b6
add edi, 0xb0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, edi
call fcn.00416cc3
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042d4ab
leave
ret