Function at 0x4044f0
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 + 0x407168], 0
je 0x40461a
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x407168]
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 + 0x407168]
mov dword [ebp - 0x14], edx
jmp 0x40454f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
cmp dword [edx], ecx
jne 0x40455f
sub dword [ebp - 0xc], 4
add dword [ebp - 0x10], 4
add dword [ebp - 0x14], 4
cmp dword [ebp - 0xc], 4
jae 0x404537
cmp dword [ebp - 0xc], 0
je 0x4045e1
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 0x4045ea
sub dword [ebp - 0xc], 1
add dword [ebp - 0x10], 1
add dword [ebp - 0x14], 1
cmp dword [ebp - 0xc], 0
je 0x4045e1
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 0x4045ea
sub dword [ebp - 0xc], 1
add dword [ebp - 0x10], 1
add dword [ebp - 0x14], 1
cmp dword [ebp - 0xc], 0
je 0x4045e1
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 0x4045ea
sub dword [ebp - 0xc], 1
add dword [ebp - 0x10], 1
add dword [ebp - 0x14], 1
cmp dword [ebp - 0xc], 0
je 0x4045e1
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 0x4045ea
mov dword [ebp - 0x1c], 0
jmp 0x4045fe
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x18], 0
jg 0x4045fe
mov dword [ebp - 0x1c], 0xffffffff
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
jne 0x40460c
jmp 0x40461a
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x4044fd
mov eax, dword [ebp - 4]
cmp dword [eax*4 + 0x407168], 0
jne 0x40462e
xor eax, eax
jmp 0x4046f3
mov ecx, dword [ebp - 4]
cmp dword [ecx*4 + 0x407184], 0x31337
jne 0x40467c
mov dword [ebp - 4], 0
mov edx, dword [ebp - 4]
movsx eax, byte [edx + 0x4075c8]
cmp eax, 0x5c
je 0x404670
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov al, byte [edx + 0x4075c8]
mov byte [ecx], al
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x404645
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 4]
mov byte [edx + 1], 0
jmp 0x4046b5
cmp dword [0x407f84], 1
jne 0x404694
mov eax, dword [ebp - 4]
mov ecx, dword [eax*4 + 0x40719c]
mov dword [ebp - 8], ecx
jmp 0x4046a1
mov edx, dword [ebp - 4]
mov eax, dword [edx*4 + 0x407184]
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 0x4046ee
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