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

Disassembly:
sub esp, 0x6e0
push ebx
push ebp
mov ebp, dword [esp + 0x6ec]
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 + 0x3ec]
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 + 0x6f8]
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.00404c10
mov edi, eax
add esp, 8
test edi, edi
je 0x41daef
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 0x4e076c
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x6f8]
lea eax, [esp + 0x4e8]
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 + 0x4ec]
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 0x41dac8
mov edx, dword [edi + 8]
push edx
call fcn.00453110
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 0x41d674
mov edx, dword [esi + 0x10]
push eax
push edx
call fcn.00404c10
mov dword [esp + 0x18], eax
mov eax, dword [edi + 4]
push eax
call fcn.00453110
mov edx, dword [esp + 0x1c]
mov ecx, dword [edi + 8]
push ecx
mov eax, dword [edx + 4]
push eax
call fcn.00453040
add esp, 0x14
mov dword [edi + 4], eax
jmp 0x41d6ae
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x41d6ae
mov edx, dword [edi + 4]
push edx
call fcn.00453110
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.00453040
mov edx, dword [esp + 0x1c]
mov dword [edi + 4], eax
push edx
call fcn.00453110
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.0041ce90
cmp ebp, ebx
jne 0x41d7cd
mov ecx, dword [esi + 0x10]
push 0
push 9
push 0x110a
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x41d7cd
mov edx, dword [esi + 0x10]
push eax
push edx
call fcn.00404c10
add esp, 8
test eax, eax
je 0x41d7cd
mov edx, dword [eax + 4]
lea ecx, [esp + 0x1d8]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x41d7cd
mov al, byte [esp + 0x1d8]
test al, al
je 0x41d7cd
lea ebx, [esi + 0x20c]
lea eax, [esp + 0x1d8]
push ebx
push eax
call fcn.004cab10
add esp, 8
test eax, eax
je 0x41d7cd
push 0
push 0
lea ecx, [esp + 0x1e0]
push 0
push ecx
mov ecx, esi
call fcn.004174b0
test eax, eax
jne 0x41d7cd
mov eax, dword [0x4eb434]
test eax, eax
je 0x41d7cd
mov edx, dword [esi + 0x10]
push 0
push 0
push 0xb
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push ebx
mov ecx, esi
call fcn.0041cd60
mov ebx, eax
test ebx, ebx
je 0x41d7bd
mov eax, dword [esi + 0x10]
push ebx
push 0
push 0x1114
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esi + 0x10]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 9
push 0x110b
push ecx
call ebx
mov edx, dword [esi + 0x10]
push 0
push 1
push 0xb
push edx
call ebx
jmp 0x41d7cd
mov eax, dword [esi + 0x10]
push 0
push 1
push 0xb
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esi + 0x10]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push 4
push 0x110a
push ecx
call ebx
test eax, eax
jne 0x41d7ef
push 1
push ebp
mov ecx, esi
call fcn.0041ce90
mov eax, dword [edi + 4]
lea edx, [esp + 0xd0]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea ecx, [esp + 0xd0]
push ecx
call fcn.0044b3b0
mov edi, eax
add esp, 4
test edi, edi
je 0x41da7d
lea edx, [esp + 0xd0]
cmp edi, edx
jbe 0x41da7d
lea eax, [esp + 0x1d8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0xd0]
mov byte [edi - 1], 0
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 2
jg 0x41d863
lea edx, [esp + 0xd0]
push 0x4e076c
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0xd0]
lea ecx, [esi + 0x20c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x41d922
mov eax, dword [esi + 0x428]
lea edx, [esp + 0x3e4]
dec eax
push 1
push edx
lea ecx, [esp + 0x68]
mov dword [esi + 0x428], eax
call fcn.00423d40
lea eax, [esp + 0x60]
test eax, eax
je 0x41d914
mov eax, dword [esi + 0x498]
xor edi, edi
test eax, eax
jle 0x41d914
mov edx, dword [esi + 0x494]
lea ecx, [esp + 0x60]
push ecx
mov ecx, dword [edx + edi*4]
call fcn.00424140
test eax, eax
jne 0x41d8e4
mov eax, dword [esi + 0x498]
inc edi
cmp edi, eax
jl 0x41d8b4
lea ecx, [esp + 0x60]
call fcn.00423df0
jmp 0x41da7d
mov eax, dword [esi + 0x494]
mov edi, dword [eax + edi*4]
test edi, edi
je 0x41d914
lea ecx, [esp + 0x1d8]
push ecx
mov ecx, edi
call fcn.00424320
mov edi, dword [edi + 0x5c]
test edi, edi
jl 0x41d914
mov edx, dword [esi + 0xc]
push edi
push edi
push 0x1015
push edx
call ebx
lea ecx, [esp + 0x60]
call fcn.00423df0
jmp 0x41da7d
lea eax, [esp + 0xd0]
push 0x4cc76c
lea ecx, [esp + 0x2e4]
push eax
push ecx
call fcn.0044a2d0
mov ebx, 0x4cc7c4
push 0x4e20
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], 0x1388
call fcn.004be967
mov ecx, dword [esp + 0x30]
mov edi, eax
xor eax, eax
mov dword [esp + 0x2c], edi
add esp, 0x10
rep stosd dword es:[edi], eax
mov edx, dword [0x4eb330]
lea eax, [esp + 0x2e0]
xor edi, edi
push edx
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x20], 0x4cc7c0
mov dword [esp + 0x30], 1
call fcn.00423340
push 0x14
call fcn.004be967
add esp, 4
cmp eax, edi
je 0x41dac1
lea ecx, [esp + 0x3e4]
push 0x4eb858
push ecx
mov ecx, eax
call fcn.00422ed0
mov ebp, eax
cmp ebp, edi
je 0x41d9f4
mov edx, dword [esp + 0x20]
mov ecx, ebp
push edx
call fcn.00423150
mov ecx, dword [esp + 0x1c]
mov edi, dword [ecx + eax*4]
test edi, edi
je 0x41d9f4
push ebp
mov ecx, edi
call fcn.00422fc0
test eax, eax
jne 0x41d9f4
mov edi, dword [edi + 4]
test edi, edi
jne 0x41d9e1
test ebp, ebp
je 0x41da01
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
test edi, edi
je 0x41da33
mov eax, dword [esp + 0x6f8]
mov ecx, edi
push eax
call fcn.00423130
mov ecx, dword [0x4eb330]
mov edx, dword [0x4eb32c]
push ecx
lea eax, [esp + 0x2e4]
push edx
push eax
lea ecx, [esp + 0x24]
call fcn.004234e0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], ebx
test eax, eax
je 0x41da70
mov eax, dword [esp + 0x20]
xor ebx, ebx
test eax, eax
jle 0x41da70
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + ebx*4]
test ecx, ecx
je 0x41da67
mov edi, dword [ecx + 4]
test ecx, ecx
je 0x41da61
mov edx, dword [ecx]
push 1
call dword [edx]
test edi, edi
mov ecx, edi
jne 0x41da54
mov eax, dword [esp + 0x20]
inc ebx
cmp ebx, eax
jl 0x41da49
mov eax, dword [esp + 0x1c]
push eax
call fcn.004be975
add esp, 4
lea ecx, [esi + 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edx, dword [esi + 0x10]
push 0
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]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x6e0
ret 8
xor ebp, ebp
jmp 0x41d9f4
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]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x6e0
ret 8