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

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x4d4
push ebx
push esi
push edi
mov dword [ebp + 0x38], ecx
push 0x20a
lea ecx, [ebp + 0x30]
call fcn.00444a2e
push dword [ebp + 0x30]
push 0x208
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
push dword [ebp + 0x38]
xor ebx, ebx
lea ecx, [ebp + 0x20]
mov dword [ebp + 0x50], ebx
mov dword [ebp + 0x44], ebx
call fcn.00446db5
lea eax, [ebp + 0x74]
push eax
call fcn.0043e425
push 4
lea eax, [ebp + 0x74]
push eax
push str._fix
call fcn.00446a34
add esp, 0x10
mov esi, 0x4bfa2c
push esi
lea ecx, [ebp + 0x58]
mov byte [ebp + 0x4f], al
call fcn.0044df7a
push esi
lea ecx, [ebp + 0x34]
call fcn.0044df7a
push esi
lea ecx, [ebp + 0x40]
call fcn.0044df7a
push esi
lea ecx, [ebp + 0x3c]
call fcn.0044df7a
push 4
push dword [ebp + 0x74]
mov dword [ebp + 0x48], ebx
push str.raw
mov byte [ebp + 0x66], bl
mov byte [ebp + 0x67], bl
mov byte [ebp + 0x5f], bl
call fcn.0043f82d
add esp, 0xc
test al, al
je 0x45f47f
add dword [ebp + 0x74], 8
lea eax, [ebp + 0x74]
push eax
mov byte [ebp + 0x5f], 1
call fcn.0043e425
pop ecx
push 1
push 0x2c
pop edi
push edi
lea eax, [ebp + 0x74]
push eax
lea ecx, [ebp + 0x20]
call fcn.004581ad
push ebx
lea ecx, [ebp + 0x58]
push ecx
push eax
call fcn.0044785b
mov ecx, dword [ebp + 0x38]
add esp, 0xc
push ebx
lea eax, [ebp + 0x58]
push eax
call fcn.00402ee8
mov eax, dword [ebp + 0x58]
cmp word [eax], bx
je 0x45fb58
mov eax, dword [ebp + 0x74]
cmp word [eax], di
jne 0x45f4c4
add dword [ebp + 0x74], 2
lea eax, [ebp + 0x74]
push eax
call fcn.0043e425
pop ecx
mov ecx, dword [ebp + 0x74]
jmp 0x45f4ed
cmp ax, 0x26
jne 0x45f4df
mov byte [ebp + 0x66], 1
jmp 0x45f4e8
cmp ax, 0x2a
jne 0x45f4f5
inc byte [ebp + 0x67]
inc ecx
inc ecx
mov dword [ebp + 0x74], ecx
mov ax, word [ecx]
cmp ax, bx
jne 0x45f4d3
lea eax, [ebp + 0x74]
push eax
call fcn.0043e425
pop ecx
push 1
push edi
lea eax, [ebp + 0x74]
push eax
lea ecx, [ebp + 0x20]
call fcn.004581ad
push ebx
lea ecx, [ebp + 0x34]
push ecx
push eax
call fcn.0044785b
push dword [ebp + 0x34]
call fcn.004130a1
mov dword [ebp + 0x54], eax
mov eax, dword [ebp + 0x74]
add esp, 0x10
cmp word [eax], di
jne 0x45f5fc
add dword [ebp + 0x74], 2
push 1
push edi
lea eax, [ebp + 0x74]
push eax
lea ecx, [ebp + 0x20]
call fcn.004581ad
push ebx
lea ecx, [ebp + 0x40]
push ecx
push eax
call fcn.0044785b
mov eax, dword [ebp + 0x74]
add esp, 0xc
cmp word [eax], di
jne 0x45f5fc
add dword [ebp + 0x74], 2
push 1
push edi
lea eax, [ebp + 0x74]
push eax
lea ecx, [ebp + 0x20]
call fcn.004581ad
push ebx
lea ecx, [ebp + 0x3c]
push ecx
push eax
call fcn.0044785b
mov eax, dword [ebp + 0x74]
add esp, 0xc
cmp word [eax], di
jne 0x45f5fc
add dword [ebp + 0x74], 2
push edi
lea eax, [ebp + 0x48]
push eax
push 1
push edi
lea eax, [ebp + 0x74]
push eax
lea ecx, [ebp + 0x20]
call fcn.004581ad
push eax
call fcn.00447ac3
mov eax, dword [ebp + 0x74]
add esp, 0xc
cmp word [eax], di
jne 0x45f5fc
add dword [ebp + 0x74], 2
push edi
lea eax, [ebp + 0x50]
push eax
push 1
push edi
lea eax, [ebp + 0x74]
push eax
lea ecx, [ebp + 0x20]
call fcn.004581ad
push eax
call fcn.00447ac3
mov eax, dword [ebp + 0x74]
add esp, 0xc
cmp word [eax], di
jne 0x45f5fc
add dword [ebp + 0x74], 2
push edi
lea eax, [ebp + 0x44]
push eax
push 1
push edi
lea eax, [ebp + 0x74]
push eax
lea ecx, [ebp + 0x20]
call fcn.004581ad
push eax
call fcn.00447ac3
add esp, 0xc
push dword [ebp + 0x54]
lea ecx, [ebp + 0x60]
mov dword [ebp + 0x2c], ebx
call fcn.0044df7a
mov eax, dword [ebp + 0x60]
cmp word [eax], bx
je 0x45f66d
cmp byte [ebp + 0x4f], bl
je 0x45f667
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edi, eax
mov eax, dword [ebp + 0x60]
cmp word [eax], bx
je 0x45f667
cmp word [eax + 2], 0x3a
jne 0x45f667
cmp word [eax + 4], 0x5c
jne 0x45f667
cmp word [eax + 6], 0x2e
je 0x45f667
lea eax, [edi + 8]
push eax
lea ecx, [ebp + 0x60]
call fcn.00444a55
lea eax, [edi + edi + 4]
mov edi, dword [ebp + 0x60]
push eax
lea eax, [edi + 4]
push eax
lea eax, [edi + 8]
push eax
call fcn.00414356
add esp, 0xc
mov word [edi + 6], 0x2e
mov eax, dword [ebp + 0x60]
mov dword [ebp + 0x2c], eax
push 0x3b
push dword [ebp + 0x58]
call dword [sym.imp.shlwapi.dll_StrChrW]
cmp eax, ebx
mov dword [ebp + 0x54], eax
je 0x45f687
mov word [eax], bx
inc eax
inc eax
mov dword [ebp + 0x54], eax
lea ecx, [ebp + 0x74]
call fcn.00444a10
mov edi, dword [ebp + 0x38]
test byte [edi + 9], 0xf
mov eax, dword [ebp + 0x58]
jne 0x45f6a1
cmp word [eax], 0x26
jne 0x45f6cd
push ebx
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
call fcn.00410c6f
cmp eax, ebx
je 0x45f6cd
mov ecx, dword [eax + 0x10]
cmp ecx, 1
jne 0x45f6c0
mov eax, dword [eax + 4]
mov byte [eax], bl
jmp 0x45f6d8
cmp ecx, 2
jb 0x45f6d8
mov eax, dword [eax + 4]
mov word [eax], bx
jmp 0x45f6d8
push esi
push dword [ebp + 0x58]
mov ecx, edi
call fcn.0044414b
cmp dword [ebp + 0x50], ebx
je 0x45f727
mov esi, dword [ebp + 0x54]
cmp esi, ebx
mov dword [ebp + 0x68], ebx
jne 0x45f712
push dword [ebp + 0x58]
lea ecx, [ebp + 0x68]
call fcn.0044dfe2
push str..flg
lea ecx, [ebp + 0x68]
call fcn.00444a7c
mov esi, dword [ebp + 0x68]
push ebx
push 0xffffffffffffffff
push ebx
push esi
mov ecx, edi
call fcn.00410c6f
test eax, eax
je 0x45f71f
push 0x4c37c0
push esi
mov ecx, edi
call fcn.0044414b
lea ecx, [ebp + 0x68]
call fcn.0043e48d
push dword [ebp + 0x78]
call fcn.00441901
cmp byte [ebp + 0x67], 1
pop ecx
mov dword [ebp + 0x54], eax
je 0x45fa76
push 0xffffffffffffffff
push 0x4c8f2c
lea ecx, [ebp + 0x78]
mov dword [ebp + 0x68], ebx
call fcn.0044dfb0
mov esi, dword [ebp + 0x3c]
xor eax, eax
mov ax, word [esi]
cmp ax, bx
mov dword [ebp + 0x44], eax
je 0x45f7d9
push 0x7c
push esi
call dword [sym.imp.shlwapi.dll_StrChrW]
test eax, eax
lea ecx, [ebp + 0x78]
push esi
je 0x45f79f
call fcn.0044dfe2
push 0x4c577c
lea ecx, [ebp + 0x78]
call fcn.00444a7c
mov eax, dword [ebp + 0x78]
mov dword [ebp + 0x44], ebx
mov dword [ebp + 0x68], eax
jmp 0x45f798
cmp word [eax], 0x7c
jne 0x45f796
mov word [eax], bx
inc eax
inc eax
cmp word [eax], bx
jne 0x45f78d
jmp 0x45f7d9
call fcn.00444a7c
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov esi, eax
lea eax, [esi + esi + 6]
push eax
lea ecx, [ebp + 0x78]
call fcn.00444a55
mov edi, dword [ebp + 0x78]
lea eax, [esi + 1]
push eax
lea eax, [edi + esi*2 + 2]
push edi
push eax
call fcn.00405988
add esp, 0xc
mov word [edi + esi*4 + 4], bx
mov dword [ebp + 0x68], edi
push dword [ebp + 0x60]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edi, eax
lea esi, [edi + edi + 0x10]
cmp esi, 0x3f7a0
jg 0x45f7f5
mov esi, 0x3f7a2
lea eax, [esi + 8]
push eax
lea ecx, [ebp + 0x60]
call fcn.00444a55
mov eax, esi
sub eax, edi
lea eax, [eax + eax + 0x10]
push eax
mov eax, dword [ebp + 0x60]
lea eax, [eax + edi*2]
push ebx
push eax
call fcn.004acf60
add esp, 0xc
xor eax, eax
push 0x14
mov dword [ebp - 0x58], 0x58
pop ecx
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x54]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x40]
mov cx, word [eax]
neg cx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ebp + 0x60]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x68]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x48]
or dword [ebp - 0x24], eax
cmp dword [ebp + 0x50], ebx
mov dword [ebp - 0x28], ecx
je 0x45f871
mov eax, dword [ebp + 0x50]
or dword [ebp - 0x24], 0x20
mov dword [ebp - 0x14], eax
test byte [ebp - 0x22], 4
jne 0x45f87b
or byte [ebp - 0x22], 0x20
call fcn.0043f9b7
cmp byte [ebp + 0x66], bl
lea eax, [ebp - 0x58]
push eax
je 0x45f891
call dword [0x4db26c]
jmp 0x45f897
call dword [0x4db268]
cmp dword [ebp + 0x50], ebx
jne 0x45fa05
cmp eax, 1
je 0x45f8b2
lea ecx, [ebp + 0x78]
call fcn.0043e48d
jmp 0x45fb0b
test byte [ebp - 0x23], 2
je 0x45f8da
test byte [ebp - 0x22], 8
je 0x45f945
mov esi, dword [ebp - 0x3c]
mov edi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
push esi
mov dword [ebp + 0x2c], esi
call edi
lea esi, [esi + eax*2 + 2]
cmp word [esi], bx
jne 0x45f8ea
push dword [ebp - 0x3c]
lea ecx, [ebp + 0x74]
call fcn.0044dfe2
jmp 0x45fa05
mov eax, dword [ebp + 0x74]
cmp word [eax], bx
je 0x45f8ff
push 0x4c00b0
lea ecx, [ebp + 0x74]
call fcn.00444a7c
push dword [ebp + 0x2c]
lea ecx, [ebp + 0x74]
call fcn.00444a7c
push dword [ebp + 0x74]
call edi
cmp eax, ebx
jle 0x45f92b
mov ecx, dword [ebp + 0x74]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x45f92b
push 0x4c0770
lea ecx, [ebp + 0x74]
call fcn.00444a7c
push esi
lea ecx, [ebp + 0x74]
call fcn.00444a7c
push esi
call edi
lea esi, [esi + eax*2 + 2]
cmp word [esi], bx
jne 0x45f8ea
jmp 0x45fa05
mov edi, dword [ebp - 0x3c]
lea eax, [ebp + 0x68]
push eax
mov dword [ebp + 0x68], edi
call fcn.00405a01
mov esi, dword [ebp + 0x68]
sub esi, edi
pop ecx
sar esi, 1
lea eax, [esi + 1]
push eax
push edi
lea ecx, [ebp + 0x48]
call fcn.0044df97
cmp esi, ebx
jle 0x45f977
push 0x5c
pop eax
cmp word [edi + esi*2 - 2], ax
jne 0x45f979
xor eax, eax
mov edi, dword [ebp + 0x48]
mov word [edi + esi*2], ax
lea eax, [ebp + 0x68]
push eax
call fcn.0043e425
mov esi, dword [ebp + 0x68]
cmp word [esi], bx
pop ecx
jne 0x45f99f
push dword [ebp - 0x3c]
lea ecx, [ebp + 0x74]
call fcn.0044dfe2
jmp 0x45f9fd
mov eax, dword [ebp + 0x74]
cmp word [eax], bx
je 0x45f9b4
push 0x4c00b0
lea ecx, [ebp + 0x74]
call fcn.00444a7c
push edi
lea ecx, [ebp + 0x74]
call fcn.00444a7c
lea eax, [ebp + 0x68]
push eax
call fcn.00405a01
mov eax, dword [ebp + 0x68]
pop ecx
sub eax, esi
sar eax, 1
push eax
push esi
lea ecx, [ebp + 0x54]
call fcn.0044df97
push dword [ebp + 0x54]
lea ecx, [ebp + 0x74]
call fcn.00444a7c
lea eax, [ebp + 0x68]
push eax
call fcn.0043e425
pop ecx
lea ecx, [ebp + 0x54]
call fcn.0043e48d
mov esi, dword [ebp + 0x68]
cmp word [esi], bx
jne 0x45f99f
lea ecx, [ebp + 0x48]
call fcn.0043e48d
test byte [ebp - 0x23], 2
jne 0x45fa69
cmp byte [ebp + 0x5f], bl
jne 0x45fa69
cmp byte [ebp + 0x66], bl
je 0x45fa69
cmp word [ebp + 0x44], bx
je 0x45fa69
lea eax, [ebp + 0x74]
push eax
lea ecx, [ebp + 0x68]
call fcn.0044dfcb
push dword [ebp + 0x68]
call fcn.0044260b
cmp eax, ebx
pop ecx
jne 0x45fa39
mov eax, dword [ebp + 0x68]
jmp 0x45fa3b
inc eax
inc eax
push 0x2e
push ebx
push eax
call dword [sym.imp.shlwapi.dll_StrRChrW]
test eax, eax
jne 0x45fa61
push 0x4c0450
lea ecx, [ebp + 0x74]
call fcn.00444a7c
push dword [ebp + 0x3c]
lea ecx, [ebp + 0x74]
call fcn.00444a7c
lea ecx, [ebp + 0x68]
call fcn.0043e48d
lea ecx, [ebp + 0x78]
call fcn.0043e48d
jmp 0x45fb06
xor eax, eax
push 7
pop ecx
lea edi, [ebp + 4]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x54]
mov dword [ebp], eax
lea eax, [ebp - 0x468]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x40]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x48]
xor eax, 0x40
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x50]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x44]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x2c]
cmp eax, ebx
mov dword [ebp + 4], ebx
mov word [ebp - 0x260], bx
mov word [ebp - 0x468], bx
je 0x45facc
mov dword [ebp + 0x14], 0x448d88
mov dword [ebp + 0x18], eax
lea eax, [ebp]
push eax
call dword [sym.imp.shell32.dll_SHBrowseForFolderW]
cmp eax, ebx
mov dword [ebp + 0x78], eax
je 0x45fafe
lea ecx, [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.shell32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x45fafe
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp + 0x74]
call fcn.0044dfe2
lea ecx, [ebp + 0x78]
call fcn.00448d55
cmp dword [ebp + 0x50], ebx
jne 0x45fb3a
mov ecx, dword [ebp + 0x7c]
cmp ecx, ebx
push dword [ebp + 0x74]
je 0x45fb1c
call fcn.0044e03e
jmp 0x45fb3a
lea ecx, [ebp + 0x78]
call fcn.0044df7a
push dword [ebp + 0x78]
mov ecx, dword [ebp + 0x38]
push dword [ebp + 0x58]
call fcn.0044414b
lea ecx, [ebp + 0x78]
call fcn.0043e48d
push dword [ebp + 0x30]
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
call fcn.00414d7f
lea ecx, [ebp + 0x74]
call fcn.0043e48d
lea ecx, [ebp + 0x60]
call fcn.0043e48d
lea ecx, [ebp + 0x3c]
call fcn.0043e48d
lea ecx, [ebp + 0x40]
call fcn.0043e48d
lea ecx, [ebp + 0x34]
call fcn.0043e48d
lea ecx, [ebp + 0x58]
call fcn.0043e48d
lea ecx, [ebp + 0x20]
call fcn.0043e48d
lea ecx, [ebp + 0x30]
call fcn.0043e48d
pop edi
pop esi
xor eax, eax
pop ebx
add ebp, 0x6c
leave
ret 0xc