Function at 0x4175a0
Capabilities:
Get common file path
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x4d6694
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6dc
push ebx
push ebp
mov ebp, dword [esp + 0x6f4]
push esi
mov ebx, dword [sym.imp.user32.dll_SendMessageA]
mov esi, ecx
lea ecx, [esp + 0x34]
push edi
mov edx, dword [esi + 0x10]
push ecx
push 0
lea eax, [esp + 0x2e4]
push 0x110c
push edx
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 0x104
call ebx
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x700]
lea ecx, [esp + 0x38]
mov dword [esp + 0x48], eax
push ecx
push 0
push 0x110d
push edx
call ebx
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
push eax
call dword [sym.imp.user32.dll_SetCursor]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x10]
push ebp
push eax
call fcn.00404b60
mov edi, eax
add esp, 8
test edi, edi
je 0x417a90
mov ecx, dword [esi + 0x10]
push ecx
call dword [sym.imp.user32.dll_UpdateWindow]
mov edx, dword [esi + 0x10]
push 0
push 0
push 0xb
push edx
call ebx
push 0x4ee610
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x700]
lea eax, [esp + 0x4e4]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov eax, dword [edi]
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x4e8]
mov edx, dword [eax]
push 0x20
push ecx
mov ecx, dword [edi + 8]
push ecx
mov ecx, dword [esi + 0x10]
push ecx
push eax
call dword [edx + 0x30]
test eax, eax
jl 0x417a69
mov edx, dword [edi + 8]
push edx
call fcn.0044b4a0
mov eax, dword [esp + 0x38]
add esp, 4
mov dword [edi + 8], eax
mov ecx, dword [esi + 0x10]
push ebp
push 3
push 0x110a
push ecx
call ebx
test eax, eax
je 0x417709
mov edx, dword [esi + 0x10]
push eax
push edx
call fcn.00404b60
mov dword [esp + 0x18], eax
mov eax, dword [edi + 4]
push eax
call fcn.0044b4a0
mov edx, dword [esp + 0x1c]
mov ecx, dword [edi + 8]
push ecx
mov eax, dword [edx + 4]
push eax
call fcn.0044b3d0
add esp, 0x14
mov dword [edi + 4], eax
jmp 0x417743
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
call dword [sym.imp.shell32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x417743
mov edx, dword [edi + 4]
push edx
call fcn.0044b4a0
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.0044b3d0
mov edx, dword [esp + 0x1c]
mov dword [edi + 4], eax
push edx
call fcn.0044b4a0
add esp, 0x10
mov eax, dword [esi + 0x10]
push 0
push 9
push 0x110a
push eax
call ebx
push 1
push ebp
mov ecx, esi
mov ebx, eax
call fcn.00416d20
cmp ebp, ebx
jne 0x417769
mov ecx, esi
call fcn.00416b00
push ebp
mov ecx, esi
call fcn.00416a20
mov edx, dword [edi + 4]
lea ecx, [esp + 0xd0]
push ecx
push edx
call dword [sym.imp.shell32.dll_SHGetPathFromIDList]
lea eax, [esp + 0xd0]
push eax
call fcn.00443d50
mov edi, eax
xor ebp, ebp
add esp, 4
cmp edi, ebp
je 0x417a31
lea ecx, [esp + 0xd0]
cmp edi, ecx
jbe 0x417a31
lea edx, [esp + 0x3e0]
push edi
push edx
call dword [sym.imp.kernel32.dll_lstrcpy]
lea eax, [esp + 0xd0]
mov byte [edi - 1], 0
push eax
call dword [sym.imp.kernel32.dll_lstrlen]
cmp eax, 2
jg 0x4177e7
lea ecx, [esp + 0xd0]
push 0x4ee610
push ecx
call dword [sym.imp.kernel32.dll_lstrcat]
lea edx, [esp + 0xd0]
lea eax, [esi + 0x20c]
push edx
push eax
call dword [sym.imp.kernel32.dll_lstrcmpi]
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x10], eax
je 0x4178b7
mov ebx, dword [esi + 0x428]
lea ecx, [esp + 0x2dc]
push 1
dec ebx
push ecx
lea ecx, [esp + 0x68]
mov dword [esi + 0x428], ebx
call fcn.0041d480
lea edx, [esp + 0x60]
mov dword [esp + 0x6f4], ebp
test edx, edx
je 0x41789e
mov eax, dword [esi + 0x498]
xor edi, edi
cmp eax, ebp
jle 0x41789e
mov ecx, dword [esi + 0x494]
lea eax, [esp + 0x60]
push eax
mov ecx, dword [ecx + edi*4]
call fcn.0041d880
test eax, eax
jne 0x41786a
mov eax, dword [esi + 0x498]
inc edi
cmp edi, eax
jl 0x417846
jmp 0x41789e
mov edx, dword [esi + 0x494]
mov edi, dword [edx + edi*4]
cmp edi, ebp
je 0x41789e
lea eax, [esp + 0x3e0]
mov ecx, edi
push eax
call fcn.0041da70
mov edi, dword [edi + 0x5c]
cmp edi, ebp
jl 0x41789e
mov ecx, dword [esi + 0xc]
push edi
push edi
push 0x1015
push ecx
call dword [sym.imp.user32.dll_SendMessageA]
lea ecx, [esp + 0x60]
mov dword [esp + 0x6f4], 0xffffffff
call fcn.0041d530
jmp 0x417a31
lea edx, [esp + 0xd0]
push 0x4d872c
lea eax, [esp + 0x1dc]
push edx
push eax
call fcn.00442e30
mov ebx, 0x4d8784
push 0x4e20
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], 0x1388
call fcn.004c7e90
mov ecx, dword [esp + 0x30]
mov edi, eax
xor eax, eax
mov dword [esp + 0x2c], edi
rep stosd dword es:[edi], eax
add esp, 0x10
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x18], 0x4d8780
mov ecx, dword [0x4fb820]
lea edx, [esp + 0x1d8]
mov eax, 1
push ecx
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x6fc], eax
mov dword [esp + 0x30], eax
call fcn.0041cc00
push 0x14
call fcn.004c7e90
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebp
mov byte [esp + 0x6f4], 2
je 0x417969
lea ecx, [esp + 0x2dc]
push 0x4fbe40
push ecx
mov ecx, eax
call fcn.0041c790
mov ebp, eax
test ebp, ebp
mov byte [esp + 0x6f4], 1
je 0x4179da
mov edx, dword [esp + 0x20]
mov ecx, ebp
push edx
call fcn.0041ca10
mov ecx, dword [esp + 0x1c]
mov edi, dword [ecx + eax*4]
test edi, edi
je 0x41799f
push ebp
mov ecx, edi
call fcn.0041c860
test eax, eax
jne 0x41799f
mov edi, dword [edi + 4]
test edi, edi
jne 0x41798c
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
test edi, edi
je 0x4179da
mov eax, dword [esp + 0x700]
mov ecx, edi
push eax
call fcn.0041c9f0
mov ecx, dword [0x4fb820]
mov edx, dword [0x4fb81c]
push ecx
lea eax, [esp + 0x1dc]
push edx
push eax
lea ecx, [esp + 0x24]
call fcn.0041cdb0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x6f4], 0xffffffff
test eax, eax
mov dword [esp + 0x18], ebx
je 0x417a22
mov eax, dword [esp + 0x20]
xor ebp, ebp
test eax, eax
jle 0x417a22
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + ebp*4]
test ecx, ecx
je 0x417a19
mov edi, dword [ecx + 4]
test ecx, ecx
je 0x417a13
mov edx, dword [ecx]
push 1
call dword [edx]
test edi, edi
mov ecx, edi
jne 0x417a06
mov eax, dword [esp + 0x20]
inc ebp
cmp ebp, eax
jl 0x4179fb
mov eax, dword [esp + 0x1c]
push eax
call fcn.004c7e56
add esp, 4
xor ebp, ebp
lea ecx, [esi + 0x20c]
push ecx
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
mov edx, dword [esi + 0x10]
push ebp
push 1
push 0xb
push edx
call dword [sym.imp.user32.dll_SendMessageA]
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.user32.dll_SetFocus]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.user32.dll_SetCursor]
mov eax, 1
jmp 0x417a92
mov edx, dword [esi + 0x10]
push ebp
push 0
push 0x110e
push edx
call dword [sym.imp.user32.dll_PostMessageA]
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.user32.dll_SetFocus]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.user32.dll_SetCursor]
xor eax, eax
mov ecx, dword [esp + 0x6ec]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x6e8
ret 8