Function at 0x4038c6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x52c
lea eax, [ebp - 4]
push eax
push 0x401770
push 0x401760
call fcn.00402cd1
test eax, eax
jl 0x403b5e
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x10]
push ebx
push edx
mov ecx, dword [eax]
push 0x401780
push eax
call dword [ecx]
mov eax, dword [0x406104]
and dword [ebp - 8], 0
mov ebx, dword [eax]
test ebx, ebx
mov dword [ebp - 0xc], ebx
jle 0x403b4b
push edi
push esi
mov edi, 0x104
jmp 0x40391e
mov ebx, dword [ebp - 0xc]
push dword [ebp - 8]
push dword [0x406104]
call dword [sym.imp.COMCTL32.dll_DSA_GetItemPtr]
mov esi, eax
mov eax, dword [ebp - 8]
add ebx, eax
push ebx
call fcn.00402a33
lea eax, [ebp - 0x11c]
push edi
push eax
push dword [esi + 4]
call dword [sym.imp.COMCTL32.dll_Ordinal_233]
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.SHELL32.dll_Ordinal_33]
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.SHELL32.dll_Ordinal_52]
mov ebx, eax
cmp byte [ebx], 0
je 0x403970
and byte [ebx - 1], 0
cmp dword [ebp + 0xc], 0
je 0x4039b8
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.SHELL32.dll_Ordinal_34]
push eax
push 0x4015cc
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x403b3a
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.SHELL32.dll_Ordinal_34]
push eax
push 0x4015d8
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x403b3a
mov eax, dword [ebp - 4]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, ebx
je 0x4039db
cmp byte [eax], bl
je 0x4039db
mov ecx, dword [ebp - 4]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x24]
jmp 0x403a22
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.SHELL32.dll_Ordinal_31]
push 0x4013ec
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x403a04
mov eax, dword [ebp - 4]
push 0x401044
mov ecx, dword [eax]
jmp 0x403a1e
lea eax, [ebp - 0x324]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x324]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
cmp word [esi + 0x10], bx
jne 0x403a45
lea eax, [ebp - 0x11c]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x403a45
mov eax, dword [ebp - 4]
push ebx
push ebx
mov ecx, dword [eax]
jmp 0x403a64
push dword [esi + 0xc]
call dword [sym.imp.SHELL32.dll_Ordinal_52]
cmp byte [eax], 0
je 0x403a57
and byte [eax - 1], 0
movzx edx, word [esi + 0x10]
mov eax, dword [ebp - 4]
push edx
push dword [esi + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
mov dx, word [esi + 0x12]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 4]
push dword [esi + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
push dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [esi + 8]
push 3
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.SHELL32.dll_PathResolve]
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.SHELL32.dll_ILCreateFromPath]
mov ebx, eax
test ebx, ebx
jne 0x403acf
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.SHELL32.dll_SHSimpleIDListFromPath]
mov ebx, eax
test ebx, ebx
je 0x403b3a
mov eax, dword [ebp - 4]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
push ebx
call dword [sym.imp.SHELL32.dll_ILFree]
push dword [esi]
lea eax, [ebp - 0x220]
push dword [ebp + 8]
push eax
call dword [sym.imp.SHELL32.dll_Ordinal_37]
lea eax, [ebp - 0x220]
push 0x40129c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHELL32.dll_PathQualify]
lea eax, [ebp - 0x220]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x52c]
push edi
push eax
call dword [sym.imp.SHELL32.dll_Ordinal_79]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x52c]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jl 0x40391b
pop esi
pop edi
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop ebx
leave
ret 8