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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x420], ecx
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], edi
mov dword [ebp - 0x42c], edi
cmp eax, edi
je 0x1063754
push 0x100c900
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x1063767
call fcn.01056665
test eax, eax
jne 0x1063767
mov dword [ebp - 0x42c], 1
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x430], edi
cmp esi, edi
jne 0x1063781
mov eax, 0x80004003
jmp 0x1064358
push 0x208
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [ebp - 0x434], eax
cmp eax, edi
jne 0x10637a0
mov eax, 0x8007000e
jmp 0x1064358
push ebx
push dword [ebp - 0x434]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, 0x104
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x10637eb
push dword [ebp - 0x434]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10637d6
push 0x57
pop eax
test eax, eax
jle 0x1064357
and eax, 0xffff
or eax, 0x80070000
jmp 0x1064357
cmp edi, esi
jbe 0x1063825
push dword [ebp - 0x434]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
pop ecx
mov dword [ebp - 0x434], eax
test eax, eax
je 0x10638aa
push eax
push edi
call ebx
push dword [ebp - 0x418]
call fcn.010561eb
mov edi, dword [sym.imp.msvcrt.dll_wcsrchr]
mov ebx, 0x102
test eax, eax
je 0x10638e2
push 0x5c
push dword [ebp - 0x418]
call edi
pop ecx
test eax, eax
pop ecx
lea esi, [ebx + 1]
lea eax, [ebp - 0x20c]
je 0x10638b4
push dword [ebp - 0x418]
push esi
push eax
call fcn.01035831
cmp dword [ebp - 0x428], 0
je 0x1063954
push 0x100da70
push dword [ebp - 0x428]
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x1063954
push 0x202
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [ebp - 0x41c], eax
test eax, eax
jne 0x1063937
mov eax, 0x8007000e
jmp 0x1064357
push dword [ebp - 0x434]
push esi
push eax
call fcn.01035831
lea eax, [ebp - 0x20c]
push eax
call fcn.01055e5e
push dword [ebp - 0x418]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.010358a6
jmp 0x1063869
push dword [ebp - 0x434]
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.01035831
lea eax, [ebp - 0x20c]
push eax
call fcn.01055e5e
push dword [ebp - 0x418]
mov esi, 0x103
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.010358a6
lea eax, [ebp - 0x20c]
push eax
call fcn.010561eb
test eax, eax
jne 0x1063869
mov eax, 0x80070002
jmp 0x1064357
push 0x100c9f4
push 0x100c934
push 0x100da64
push 0x100
push eax
call fcn.0103592d
add esp, 0x14
cmp dword [ebp + 0x10], 0
je 0x106396d
push 0
push 0x100da18
push 8
mov ecx, 0x10746c8
call fcn.01058b32
mov eax, dword [ebp - 0x420]
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x1063a04
lea eax, [ebp - 0x20c]
push 0x3a
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x10639fe
lea eax, [ebp - 0x20c]
push 0x100da0c
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
jne 0x10639fe
push dword [ebp - 0x434]
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.01035831
lea eax, [ebp - 0x414]
push eax
call fcn.01055e5e
lea eax, [ebp - 0x20c]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.010358a6
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x1063a12
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
jmp 0x1063a0b
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.01035831
lea eax, [ebp - 0x414]
push 0x5c
push eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x1063a28
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
call fcn.010587e2
test eax, eax
jne 0x1063a4b
push dword [ebp - 0x434]
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.01035831
mov ecx, dword [ebp - 0x420]
lea eax, [ebp - 0x414]
push eax
call fcn.01060b31
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x440]
call fcn.0106436d
push 0
push 2
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.0105c660
mov dword [ebp - 0x418], eax
cmp eax, 0xffffffff
je 0x1064250
xor esi, esi
mov ebx, 0x100cb60
cmp dword [ebp - 0x42c], esi
je 0x1063ae8
mov ecx, dword [ebp - 0x420]
lea eax, [ebp - 0x438]
push eax
push ebx
push dword [ebp - 0x418]
mov dword [ebp - 0x438], esi
call fcn.01061c30
test eax, eax
jne 0x1063ae8
cmp dword [ebp - 0x41c], esi
je 0x1063adc
push dword [ebp - 0x41c]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x41c], eax
mov ecx, dword [ebp - 0x420]
push 0
push 0
push dword [ebp - 0x428]
push dword [ebp - 0x418]
call fcn.0106272b
mov edi, eax
mov esi, 0x100ca14
test edi, edi
jge 0x1063b43
cmp dword [ebp - 0x41c], 0
je 0x1063b3d
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x1063b3d
push esi
push edi
push 0x100d9b8
push 3
call fcn.01055c8a
add esp, 0x10
jmp 0x1063b43
mov dword [ebp - 0x424], edi
cmp dword [ebp - 0x42c], 0
je 0x1063b9d
mov ecx, dword [ebp - 0x420]
push 0
push 0
push ebx
push dword [ebp - 0x418]
call fcn.0106272b
mov edi, eax
test edi, edi
jge 0x1063b9d
cmp dword [ebp - 0x41c], 0
je 0x1063b97
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x1063b97
push esi
push edi
push 0x100d9b8
push 3
call fcn.01055c8a
add esp, 0x10
jmp 0x1063b9d
mov dword [ebp - 0x424], edi
mov edi, dword [ebp - 0x420]
lea eax, [ebp - 0x440]
push eax
push dword [ebp - 0x428]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x418]
mov ecx, edi
push eax
call fcn.01062093
mov esi, eax
test esi, esi
jge 0x1063bd1
mov ebx, esi
jmp 0x1064242
xor esi, esi
cmp dword [ebp - 0x42c], esi
je 0x1063c01
lea eax, [ebp - 0x440]
push eax
push ebx
push dword [ebp - 0x418]
lea eax, [ebp - 0x20c]
push eax
mov ecx, edi
call fcn.01062093
cmp eax, esi
jge 0x1063c01
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x430]
push eax
push dword [ebp - 0x428]
mov ecx, edi
push dword [ebp - 0x418]
call fcn.01061b4a
mov dword [ebp - 0x438], eax
cmp eax, 0xd2af9
je 0x1063c65
cmp dword [ebp - 0x42c], esi
je 0x1063c65
cmp dword [ebp - 0x430], esi
je 0x1063c4a
push dword [ebp - 0x430]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
mov dword [ebp - 0x430], esi
lea eax, [ebp - 0x430]
push eax
push ebx
push dword [ebp - 0x418]
mov ecx, edi
call fcn.01061b4a
mov dword [ebp - 0x438], eax
push dword [ebp - 0x428]
mov esi, dword [ebp - 0x418]
push esi
mov ecx, edi
call fcn.01061f62
push dword [ebp - 0x428]
mov ecx, edi
push esi
call fcn.01061ca8
push dword [ebp - 0x428]
mov ecx, edi
push esi
call fcn.01061cfa
push 0
push 0
push dword [ebp - 0x428]
mov ecx, edi
push esi
call fcn.01062abc
mov esi, eax
mov edi, 0x100c9f4
test esi, esi
jge 0x1063ce7
cmp dword [ebp - 0x41c], 0
je 0x1063ce1
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x1063ce1
push edi
push esi
push 0x100d9b8
push 3
call fcn.01055c8a
add esp, 0x10
jmp 0x1063ce7
mov dword [ebp - 0x424], esi
cmp dword [ebp - 0x42c], 0
je 0x1063d41
mov ecx, dword [ebp - 0x420]
push 0
push 0
push ebx
push dword [ebp - 0x418]
call fcn.01062abc
mov esi, eax
test esi, esi
jge 0x1063d41
cmp dword [ebp - 0x41c], 0
je 0x1063d3b
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x1063d3b
push edi
push esi
push 0x100d9b8
push 3
call fcn.01055c8a
add esp, 0x10
jmp 0x1063d41
mov dword [ebp - 0x424], esi
mov ecx, dword [ebp - 0x420]
push 0
push dword [ebp - 0x428]
push dword [ebp - 0x418]
call fcn.01061404
mov edi, eax
mov esi, 0x100c958
test edi, edi
jge 0x1063d9a
cmp dword [ebp - 0x41c], 0
je 0x1063d94
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x1063d94
push esi
push edi
push 0x100d9b8
push 3
call fcn.01055c8a
add esp, 0x10
jmp 0x1063d9a
mov dword [ebp - 0x424], edi
cmp dword [ebp - 0x42c], 0
je 0x1063df2
mov ecx, dword [ebp - 0x420]
push 0
push ebx
push dword [ebp - 0x418]
call fcn.01061404
mov edi, eax
test edi, edi
jge 0x1063df2
cmp dword [ebp - 0x41c], 0
je 0x1063dec
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x1063dec
push esi
push edi
push 0x100d9b8
push 3
call fcn.01055c8a
add esp, 0x10
jmp 0x1063df2
mov dword [ebp - 0x424], edi
mov ecx, dword [ebp - 0x420]
lea eax, [ebp - 0x440]
push eax
xor edi, edi
push edi
push dword [ebp - 0x428]
push dword [ebp - 0x418]
call fcn.01062c7f
mov esi, eax
cmp esi, edi
jge 0x1063e54
cmp dword [ebp - 0x41c], edi
je 0x1063e4c
mov edi, 0x100c934
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x1063e4c
push edi
push esi
push 0x100d9b8
push 3
call fcn.01055c8a
add esp, 0x10
jmp 0x1063e78
mov dword [ebp - 0x424], esi
jmp 0x1063e78
cmp dword [ebp - 0x438], 0xd2af8
jne 0x1063e78
cmp esi, 1
je 0x1063e78
push edi
push dword [ebp - 0x430]
mov ecx, 0x10746c8
push 4
call fcn.01058b32
xor esi, esi
cmp dword [ebp - 0x42c], esi
je 0x1063ecc
mov ecx, dword [ebp - 0x420]
lea eax, [ebp - 0x440]
push eax
push esi
push ebx
push dword [ebp - 0x418]
call fcn.01062c7f
cmp eax, esi
jge 0x1063ea8
mov dword [ebp - 0x424], eax
jmp 0x1063ecc
cmp dword [ebp - 0x438], 0xd2af8
jne 0x1063ecc
cmp eax, 1
je 0x1063ecc
push esi
push dword [ebp - 0x430]
mov ecx, 0x10746c8
push 4
call fcn.01058b32
mov ecx, dword [ebp - 0x420]
lea eax, [ebp - 0x440]
push eax
push 1
push dword [ebp - 0x428]
push dword [ebp - 0x418]
call fcn.01062c7f
mov edi, eax
test edi, edi
jge 0x1063f2e
cmp dword [ebp - 0x41c], 0
je 0x1063f26
mov esi, 0x100c920
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x1063f26
push esi
push edi
push 0x100d9b8
push 3
call fcn.01055c8a
add esp, 0x10
jmp 0x1063f53
mov dword [ebp - 0x424], edi
jmp 0x1063f53
cmp dword [ebp - 0x438], 0xd2af8
jne 0x1063f53
cmp edi, 1
je 0x1063f53
push 0
push dword [ebp - 0x430]
mov ecx, 0x10746c8
push 4
call fcn.01058b32
xor esi, esi
cmp dword [ebp - 0x42c], esi
je 0x1063fa8
mov ecx, dword [ebp - 0x420]
lea eax, [ebp - 0x440]
push eax
push 1
push ebx
push dword [ebp - 0x418]
call fcn.01062c7f
cmp eax, esi
jge 0x1063f84
mov dword [ebp - 0x424], eax
jmp 0x1063fa8
cmp dword [ebp - 0x438], 0xd2af8
jne 0x1063fa8
cmp eax, 1
je 0x1063fa8
push esi
push dword [ebp - 0x430]
mov ecx, 0x10746c8
push 4
call fcn.01058b32
push dword [ebp - 0x428]
mov ecx, dword [ebp - 0x420]
push dword [ebp - 0x418]
call fcn.01061552
mov edi, eax
cmp edi, esi
jge 0x1063ffe
cmp dword [ebp - 0x41c], esi
je 0x1063ff8
mov esi, 0x100c968
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x1063ff8
push esi
push edi
push 0x100d9b8
push 3
call fcn.01055c8a
add esp, 0x10
jmp 0x1063ffe
mov dword [ebp - 0x424], edi
cmp dword [ebp - 0x42c], 0
je 0x1064023
mov ecx, dword [ebp - 0x420]
push ebx
push dword [ebp - 0x418]
call fcn.01061552
test eax, eax
jge 0x1064023
mov dword [ebp - 0x424], eax
mov ecx, dword [ebp - 0x420]
push 1
push dword [ebp - 0x428]
push dword [ebp - 0x418]
call fcn.01061404
mov edi, eax
test edi, edi
jge 0x106407c
cmp dword [ebp - 0x41c], 0
je 0x1064076
mov esi, 0x100c948
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x1064076
push esi
push edi
push 0x100d9b8
push 3
call fcn.01055c8a
add esp, 0x10
jmp 0x106407c
mov dword [ebp - 0x424], edi
cmp dword [ebp - 0x42c], 0
je 0x10640a3
mov ecx, dword [ebp - 0x420]
push 1
push ebx
push dword [ebp - 0x418]
call fcn.01061404
test eax, eax
jge 0x10640a3
mov dword [ebp - 0x424], eax
mov eax, dword [0x10747d0]
mov ecx, dword [ebp - 0x420]
and eax, 8
push eax
push 1
push dword [ebp - 0x428]
push dword [ebp - 0x418]
call fcn.01062abc
mov edi, eax
test edi, edi
jge 0x1064105
cmp dword [ebp - 0x41c], 0
je 0x10640ff
mov esi, 0x100c9d8
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x10640ff
push esi
push edi
push 0x100d9b8
push 3
call fcn.01055c8a
add esp, 0x10
jmp 0x1064105
mov dword [ebp - 0x424], edi
cmp dword [ebp - 0x42c], 0
je 0x1064135
mov eax, dword [0x10747d0]
mov ecx, dword [ebp - 0x420]
and eax, 8
push eax
push 1
push ebx
push dword [ebp - 0x418]
call fcn.01062abc
test eax, eax
jge 0x1064135
mov dword [ebp - 0x424], eax
push dword [ebp - 0x428]
mov ecx, dword [ebp - 0x420]
push dword [ebp - 0x418]
call fcn.010625f3
test eax, eax
jge 0x1064156
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x42c], 0
je 0x106417b
mov ecx, dword [ebp - 0x420]
push ebx
push dword [ebp - 0x418]
call fcn.010625f3
test eax, eax
jge 0x106417b
mov dword [ebp - 0x424], eax
mov eax, dword [0x10747d0]
mov edi, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x420]
and eax, 8
push eax
push 1
push dword [ebp - 0x428]
push edi
call fcn.0106272b
mov esi, eax
test esi, esi
jge 0x10641aa
mov dword [ebp - 0x424], esi
cmp dword [ebp - 0x42c], 0
je 0x10641d7
mov eax, dword [0x10747d0]
mov ecx, dword [ebp - 0x420]
and eax, 8
push eax
push 1
push ebx
push edi
call fcn.0106272b
mov esi, eax
test esi, esi
jge 0x10641d7
mov dword [ebp - 0x424], esi
test byte [0x10747d0], 8
jne 0x106423c
push dword [ebp - 0x428]
mov ecx, dword [ebp - 0x420]
push edi
call fcn.01061eac
test eax, eax
jge 0x10641fc
mov dword [ebp - 0x424], eax
push dword [ebp - 0x428]
mov ecx, dword [ebp - 0x420]
push edi
call fcn.01061d68
mov esi, eax
test esi, esi
jge 0x106421a
mov dword [ebp - 0x424], esi
cmp dword [ebp - 0x42c], 0
je 0x106423c
mov ecx, dword [ebp - 0x420]
push ebx
push edi
call fcn.01061d68
mov esi, eax
test esi, esi
jge 0x106423c
mov dword [ebp - 0x424], esi
mov ebx, dword [ebp - 0x424]
push dword [ebp - 0x418]
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
jmp 0x106428a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x106425f
push 0x57
pop eax
test eax, eax
jle 0x106426b
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x100d984
push 2
call fcn.01055c8a
mov ebx, dword [ebp - 0x424]
add esp, 0x10
push dword [ebp - 0x434]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test esi, esi
jl 0x10642c6
test ebx, ebx
jl 0x10642c6
mov edi, 0x10746c8
mov ecx, edi
call fcn.010568bc
test eax, eax
je 0x106430b
mov ecx, edi
call fcn.010568bc
movzx ebx, al
shr ebx, 3
and ebx, 1
or ebx, 0xd2af8
jmp 0x106430b
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x100d950
push 2
call fcn.01055c8a
mov edi, 0x10746c8
add esp, 0x10
mov ecx, edi
call fcn.010568bc
test eax, eax
je 0x1064305
mov ecx, edi
call fcn.010568bc
movzx ebx, al
shr ebx, 3
and ebx, 1
or ebx, 0xc00d2afa
jmp 0x106430b
test esi, esi
jge 0x106430b
mov ebx, esi
push dword [ebp - 0x434]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
cmp dword [ebp - 0x41c], 0
pop ecx
je 0x106432c
push dword [ebp - 0x41c]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
cmp dword [ebp - 0x430], 0
je 0x1064341
push dword [ebp - 0x430]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
push 1
mov ecx, edi
call fcn.01058aff
lea ecx, [ebp - 0x440]
call fcn.0106437c
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01047480
leave
ret 0xc