Function at 0x45e87f
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.004441bf
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.0044646b
lea eax, [ebp + 0x74]
push eax
call fcn.0043dcd9
push 4
lea eax, [ebp + 0x74]
push eax
push str._fix
call fcn.004460ea
add esp, 0x10
mov esi, 0x4bca2c
push esi
lea ecx, [ebp + 0x58]
mov byte [ebp + 0x4f], al
call fcn.0044cf2d
push esi
lea ecx, [ebp + 0x34]
call fcn.0044cf2d
push esi
lea ecx, [ebp + 0x40]
call fcn.0044cf2d
push esi
lea ecx, [ebp + 0x3c]
call fcn.0044cf2d
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.0043f0c4
add esp, 0xc
test al, al
je 0x45e93a
add dword [ebp + 0x74], 8
lea eax, [ebp + 0x74]
push eax
mov byte [ebp + 0x5f], 1
call fcn.0043dcd9
pop ecx
push 1
push 0x2c
pop edi
push edi
lea eax, [ebp + 0x74]
push eax
lea ecx, [ebp + 0x20]
call fcn.0045708a
push ebx
lea ecx, [ebp + 0x58]
push ecx
push eax
call fcn.00446f11
mov ecx, dword [ebp + 0x38]
add esp, 0xc
push ebx
lea eax, [ebp + 0x58]
push eax
call fcn.00402ed1
mov eax, dword [ebp + 0x58]
cmp word [eax], bx
je 0x45f013
mov eax, dword [ebp + 0x74]
cmp word [eax], di
jne 0x45e97f
add dword [ebp + 0x74], 2
lea eax, [ebp + 0x74]
push eax
call fcn.0043dcd9
pop ecx
mov ecx, dword [ebp + 0x74]
jmp 0x45e9a8
cmp ax, 0x26
jne 0x45e99a
mov byte [ebp + 0x66], 1
jmp 0x45e9a3
cmp ax, 0x2a
jne 0x45e9b0
inc byte [ebp + 0x67]
inc ecx
inc ecx
mov dword [ebp + 0x74], ecx
mov ax, word [ecx]
cmp ax, bx
jne 0x45e98e
lea eax, [ebp + 0x74]
push eax
call fcn.0043dcd9
pop ecx
push 1
push edi
lea eax, [ebp + 0x74]
push eax
lea ecx, [ebp + 0x20]
call fcn.0045708a
push ebx
lea ecx, [ebp + 0x34]
push ecx
push eax
call fcn.00446f11
push dword [ebp + 0x34]
call fcn.00412ce4
mov dword [ebp + 0x54], eax
mov eax, dword [ebp + 0x74]
add esp, 0x10
cmp word [eax], di
jne 0x45eab7
add dword [ebp + 0x74], 2
push 1
push edi
lea eax, [ebp + 0x74]
push eax
lea ecx, [ebp + 0x20]
call fcn.0045708a
push ebx
lea ecx, [ebp + 0x40]
push ecx
push eax
call fcn.00446f11
mov eax, dword [ebp + 0x74]
add esp, 0xc
cmp word [eax], di
jne 0x45eab7
add dword [ebp + 0x74], 2
push 1
push edi
lea eax, [ebp + 0x74]
push eax
lea ecx, [ebp + 0x20]
call fcn.0045708a
push ebx
lea ecx, [ebp + 0x3c]
push ecx
push eax
call fcn.00446f11
mov eax, dword [ebp + 0x74]
add esp, 0xc
cmp word [eax], di
jne 0x45eab7
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.0045708a
push eax
call fcn.0044715e
mov eax, dword [ebp + 0x74]
add esp, 0xc
cmp word [eax], di
jne 0x45eab7
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.0045708a
push eax
call fcn.0044715e
mov eax, dword [ebp + 0x74]
add esp, 0xc
cmp word [eax], di
jne 0x45eab7
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.0045708a
push eax
call fcn.0044715e
add esp, 0xc
push dword [ebp + 0x54]
lea ecx, [ebp + 0x60]
mov dword [ebp + 0x2c], ebx
call fcn.0044cf2d
mov eax, dword [ebp + 0x60]
cmp word [eax], bx
je 0x45eb28
cmp byte [ebp + 0x4f], bl
je 0x45eb22
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
mov eax, dword [ebp + 0x60]
cmp word [eax], bx
je 0x45eb22
cmp word [eax + 2], 0x3a
jne 0x45eb22
cmp word [eax + 4], 0x5c
jne 0x45eb22
cmp word [eax + 6], 0x2e
je 0x45eb22
lea eax, [edi + 8]
push eax
lea ecx, [ebp + 0x60]
call fcn.004441e6
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.00413f99
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 0x45eb42
mov word [eax], bx
inc eax
inc eax
mov dword [ebp + 0x54], eax
lea ecx, [ebp + 0x74]
call fcn.004441a1
mov edi, dword [ebp + 0x38]
test byte [edi + 9], 0xf
mov eax, dword [ebp + 0x58]
jne 0x45eb5c
cmp word [eax], 0x26
jne 0x45eb88
push ebx
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
call fcn.004108b2
cmp eax, ebx
je 0x45eb88
mov ecx, dword [eax + 0x10]
cmp ecx, 1
jne 0x45eb7b
mov eax, dword [eax + 4]
mov byte [eax], bl
jmp 0x45eb93
cmp ecx, 2
jb 0x45eb93
mov eax, dword [eax + 4]
mov word [eax], bx
jmp 0x45eb93
push esi
push dword [ebp + 0x58]
mov ecx, edi
call fcn.004438ac
cmp dword [ebp + 0x50], ebx
je 0x45ebe2
mov esi, dword [ebp + 0x54]
cmp esi, ebx
mov dword [ebp + 0x68], ebx
jne 0x45ebcd
push dword [ebp + 0x58]
lea ecx, [ebp + 0x68]
call fcn.0044cf95
push str..flg
lea ecx, [ebp + 0x68]
call fcn.0044420d
mov esi, dword [ebp + 0x68]
push ebx
push 0xffffffffffffffff
push ebx
push esi
mov ecx, edi
call fcn.004108b2
test eax, eax
je 0x45ebda
push 0x4c07c4
push esi
mov ecx, edi
call fcn.004438ac
lea ecx, [ebp + 0x68]
call fcn.0043dd41
push dword [ebp + 0x78]
call fcn.0044115a
cmp byte [ebp + 0x67], 1
pop ecx
mov dword [ebp + 0x54], eax
je 0x45ef31
push 0xffffffffffffffff
push 0x4c5db8
lea ecx, [ebp + 0x78]
mov dword [ebp + 0x68], ebx
call fcn.0044cf63
mov esi, dword [ebp + 0x3c]
xor eax, eax
mov ax, word [esi]
cmp ax, bx
mov dword [ebp + 0x44], eax
je 0x45ec94
push 0x7c
push esi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
lea ecx, [ebp + 0x78]
push esi
je 0x45ec5a
call fcn.0044cf95
push 0x4c26ac
lea ecx, [ebp + 0x78]
call fcn.0044420d
mov eax, dword [ebp + 0x78]
mov dword [ebp + 0x44], ebx
mov dword [ebp + 0x68], eax
jmp 0x45ec53
cmp word [eax], 0x7c
jne 0x45ec51
mov word [eax], bx
inc eax
inc eax
cmp word [eax], bx
jne 0x45ec48
jmp 0x45ec94
call fcn.0044420d
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.004441e6
mov edi, dword [ebp + 0x78]
lea eax, [esi + 1]
push eax
lea eax, [edi + esi*2 + 2]
push edi
push eax
call fcn.0040561e
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 0x45ecb0
mov esi, 0x3f7a2
lea eax, [esi + 8]
push eax
lea ecx, [ebp + 0x60]
call fcn.004441e6
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.004aa0a0
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 0x45ed2c
mov eax, dword [ebp + 0x50]
or dword [ebp - 0x24], 0x20
mov dword [ebp - 0x14], eax
test byte [ebp - 0x22], 4
jne 0x45ed36
or byte [ebp - 0x22], 0x20
call fcn.0043f215
cmp byte [ebp + 0x66], bl
lea eax, [ebp - 0x58]
push eax
je 0x45ed4c
call dword [0x4d826c]
jmp 0x45ed52
call dword [0x4d8268]
cmp dword [ebp + 0x50], ebx
jne 0x45eec0
cmp eax, 1
je 0x45ed6d
lea ecx, [ebp + 0x78]
call fcn.0043dd41
jmp 0x45efc6
test byte [ebp - 0x23], 2
je 0x45ed95
test byte [ebp - 0x22], 8
je 0x45ee00
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 0x45eda5
push dword [ebp - 0x3c]
lea ecx, [ebp + 0x74]
call fcn.0044cf95
jmp 0x45eec0
mov eax, dword [ebp + 0x74]
cmp word [eax], bx
je 0x45edba
push 0x4c012c
lea ecx, [ebp + 0x74]
call fcn.0044420d
push dword [ebp + 0x2c]
lea ecx, [ebp + 0x74]
call fcn.0044420d
push dword [ebp + 0x74]
call edi
cmp eax, ebx
jle 0x45ede6
mov ecx, dword [ebp + 0x74]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x45ede6
push 0x4bd738
lea ecx, [ebp + 0x74]
call fcn.0044420d
push esi
lea ecx, [ebp + 0x74]
call fcn.0044420d
push esi
call edi
lea esi, [esi + eax*2 + 2]
cmp word [esi], bx
jne 0x45eda5
jmp 0x45eec0
mov edi, dword [ebp - 0x3c]
lea eax, [ebp + 0x68]
push eax
mov dword [ebp + 0x68], edi
call fcn.00405676
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.0044cf4a
cmp esi, ebx
jle 0x45ee32
push 0x5c
pop eax
cmp word [edi + esi*2 - 2], ax
jne 0x45ee34
xor eax, eax
mov edi, dword [ebp + 0x48]
mov word [edi + esi*2], ax
lea eax, [ebp + 0x68]
push eax
call fcn.0043dcd9
mov esi, dword [ebp + 0x68]
cmp word [esi], bx
pop ecx
jne 0x45ee5a
push dword [ebp - 0x3c]
lea ecx, [ebp + 0x74]
call fcn.0044cf95
jmp 0x45eeb8
mov eax, dword [ebp + 0x74]
cmp word [eax], bx
je 0x45ee6f
push 0x4c012c
lea ecx, [ebp + 0x74]
call fcn.0044420d
push edi
lea ecx, [ebp + 0x74]
call fcn.0044420d
lea eax, [ebp + 0x68]
push eax
call fcn.00405676
mov eax, dword [ebp + 0x68]
pop ecx
sub eax, esi
sar eax, 1
push eax
push esi
lea ecx, [ebp + 0x54]
call fcn.0044cf4a
push dword [ebp + 0x54]
lea ecx, [ebp + 0x74]
call fcn.0044420d
lea eax, [ebp + 0x68]
push eax
call fcn.0043dcd9
pop ecx
lea ecx, [ebp + 0x54]
call fcn.0043dd41
mov esi, dword [ebp + 0x68]
cmp word [esi], bx
jne 0x45ee5a
lea ecx, [ebp + 0x48]
call fcn.0043dd41
test byte [ebp - 0x23], 2
jne 0x45ef24
cmp byte [ebp + 0x5f], bl
jne 0x45ef24
cmp byte [ebp + 0x66], bl
je 0x45ef24
cmp word [ebp + 0x44], bx
je 0x45ef24
lea eax, [ebp + 0x74]
push eax
lea ecx, [ebp + 0x68]
call fcn.0044cf7e
push dword [ebp + 0x68]
call fcn.00441d96
cmp eax, ebx
pop ecx
jne 0x45eef4
mov eax, dword [ebp + 0x68]
jmp 0x45eef6
inc eax
inc eax
push 0x2e
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
test eax, eax
jne 0x45ef1c
push 0x4bd418
lea ecx, [ebp + 0x74]
call fcn.0044420d
push dword [ebp + 0x3c]
lea ecx, [ebp + 0x74]
call fcn.0044420d
lea ecx, [ebp + 0x68]
call fcn.0043dd41
lea ecx, [ebp + 0x78]
call fcn.0043dd41
jmp 0x45efc1
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 0x45ef87
mov dword [ebp + 0x14], 0x448423
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 0x45efb9
lea ecx, [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x45efb9
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp + 0x74]
call fcn.0044cf95
lea ecx, [ebp + 0x78]
call fcn.004483f0
cmp dword [ebp + 0x50], ebx
jne 0x45eff5
mov ecx, dword [ebp + 0x7c]
cmp ecx, ebx
push dword [ebp + 0x74]
je 0x45efd7
call fcn.0044cff1
jmp 0x45eff5
lea ecx, [ebp + 0x78]
call fcn.0044cf2d
push dword [ebp + 0x78]
mov ecx, dword [ebp + 0x38]
push dword [ebp + 0x58]
call fcn.004438ac
lea ecx, [ebp + 0x78]
call fcn.0043dd41
push dword [ebp + 0x30]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call fcn.004149ac
lea ecx, [ebp + 0x74]
call fcn.0043dd41
lea ecx, [ebp + 0x60]
call fcn.0043dd41
lea ecx, [ebp + 0x3c]
call fcn.0043dd41
lea ecx, [ebp + 0x40]
call fcn.0043dd41
lea ecx, [ebp + 0x34]
call fcn.0043dd41
lea ecx, [ebp + 0x58]
call fcn.0043dd41
lea ecx, [ebp + 0x20]
call fcn.0043dd41
lea ecx, [ebp + 0x30]
call fcn.0043dd41
pop edi
pop esi
xor eax, eax
pop ebx
add ebp, 0x6c
leave
ret 0xc