Function at 0x40aac0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
cmp dword [eax*4 + 0x410478], 0
je 0x40abea
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x410478]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x410478]
mov dword [ebp - 0x14], edx
jmp 0x40ab1f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
cmp dword [edx], ecx
jne 0x40ab2f
sub dword [ebp - 0xc], 4
add dword [ebp - 0x10], 4
add dword [ebp - 0x14], 4
cmp dword [ebp - 0xc], 4
jae 0x40ab07
cmp dword [ebp - 0xc], 0
je 0x40abb1
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax]
mov edx, dword [ebp - 0x14]
movzx eax, byte [edx]
sub eax, ecx
mov dword [ebp - 0x18], eax
jne 0x40abba
sub dword [ebp - 0xc], 1
add dword [ebp - 0x10], 1
add dword [ebp - 0x14], 1
cmp dword [ebp - 0xc], 0
je 0x40abb1
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx]
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax]
sub ecx, edx
mov dword [ebp - 0x18], ecx
jne 0x40abba
sub dword [ebp - 0xc], 1
add dword [ebp - 0x10], 1
add dword [ebp - 0x14], 1
cmp dword [ebp - 0xc], 0
je 0x40abb1
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx]
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx]
sub edx, eax
mov dword [ebp - 0x18], edx
jne 0x40abba
sub dword [ebp - 0xc], 1
add dword [ebp - 0x10], 1
add dword [ebp - 0x14], 1
cmp dword [ebp - 0xc], 0
je 0x40abb1
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax]
mov edx, dword [ebp - 0x14]
movzx eax, byte [edx]
sub eax, ecx
mov dword [ebp - 0x18], eax
jne 0x40abba
mov dword [ebp - 0x1c], 0
jmp 0x40abce
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x18], 0
jg 0x40abce
mov dword [ebp - 0x1c], 0xffffffff
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
jne 0x40abdc
jmp 0x40abea
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x40aacd
mov eax, dword [ebp - 4]
cmp dword [eax*4 + 0x410478], 0
jne 0x40abfe
xor eax, eax
jmp 0x40acc3
mov ecx, dword [ebp - 4]
cmp dword [ecx*4 + 0x410494], 0x31337
jne 0x40ac4c
mov dword [ebp - 4], 0
mov edx, dword [ebp - 4]
movsx eax, byte [edx + 0x412628]
cmp eax, 0x5c
je 0x40ac40
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov al, byte [edx + 0x412628]
mov byte [ecx], al
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x40ac15
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 4]
mov byte [edx + 1], 0
jmp 0x40ac85
cmp dword [0x4132fc], 1
jne 0x40ac64
mov eax, dword [ebp - 4]
mov ecx, dword [eax*4 + 0x4104ac]
mov dword [ebp - 8], ecx
jmp 0x40ac71
mov edx, dword [ebp - 4]
mov eax, dword [edx*4 + 0x410494]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 0
mov edx, dword [ebp - 8]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
push 0x25
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrChrA]
mov dword [ebp + 8], eax
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x40acbe
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, 1
mov esp, ebp
pop ebp
ret