Function at 0x4174c0
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
push ebp
xor edi, edi
push 0x4366c0
mov ebp, dword [esp + 0x18]
mov dword [0x43155c], edi
push ebp
mov dword [0x431554], edi
mov dword [0x431558], edi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x417590
cmp dword [0x431550], edi
jle 0x417590
mov esi, 0x435f60
mov ebx, dword [sym.imp.KERNEL32.dll_LocalLock]
mov eax, dword [esi]
push eax
call ebx
test eax, eax
je 0x41754e
mov edx, ebp
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x417532
or cl, cl
je 0x41752e
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x417532
add eax, 2
add edx, 2
or cl, cl
jne 0x417512
xor eax, eax
jmp 0x417537
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x417545
mov eax, dword [esi + 4]
push eax
call ebx
test eax, eax
jne 0x41755c
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
add esi, 8
inc edi
cmp dword [0x431550], edi
jg 0x417507
jmp 0x417596
push eax
lea esi, [edi*8]
push 0x438990
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esi + 0x435f64]
push eax
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
mov eax, dword [esi + 0x435f60]
push eax
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
mov ebx, dword [sym.imp.KERNEL32.dll_LocalLock]
cmp dword [0x431550], 0x12
jle 0x417607
mov eax, dword [0x435f60]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
push eax
call esi
mov ecx, dword [0x435f64]
push ecx
call ebx
mov edi, eax
test edi, edi
je 0x4175dd
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 3
jle 0x4175d1
push edi
call fcn.0042b810
add esp, 4
mov eax, dword [0x435f64]
push eax
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
mov eax, dword [0x435f64]
push eax
call esi
mov edx, 0x435f60
lea ecx, [edx + 8]
cmp ecx, 0x435ff8
mov eax, dword [ecx]
mov dword [edx], eax
mov esi, dword [edx + 0xc]
mov dword [edx + 4], esi
mov edx, ecx
jb 0x4175ea
dec dword [0x431550]
push 0x438990
push 0
push 0x42fc2c
push 0x437020
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 2
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
push 0x42
call esi
mov ecx, dword [0x431550]
mov edi, ecx
mov dword [ecx*8 + 0x435f60], eax
mov eax, dword [edi*8 + 0x435f60]
test eax, eax
je 0x41767b
push eax
call ebx
mov edi, dword [0x431550]
test eax, eax
je 0x41767b
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x431550]
mov ecx, dword [eax*8 + 0x435f60]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
mov edi, dword [0x431550]
push 0x438990
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 2
push eax
push 0x42
call esi
mov ecx, dword [0x431550]
mov dword [edi*8 + 0x435f64], eax
mov eax, dword [ecx*8 + 0x435f64]
test eax, eax
je 0x4176d8
push eax
call ebx
mov ecx, dword [0x431550]
test eax, eax
je 0x4176d8
push 0x438990
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x431550]
mov ecx, dword [eax*8 + 0x435f64]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
mov ecx, dword [0x431550]
inc ecx
mov eax, 0x63
pop ebp
mov dword [0x431550], ecx
pop edi
pop esi
pop ebx
ret