Function at 0x106166e
Capabilities:
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x438], ebx
cmp edi, ebx
jne 0x10616b3
mov eax, 0x80004003
jmp 0x1061702
push ebx
push ebx
push ebx
push 5
call fcn.01058952
test eax, eax
jne 0x10616c4
inc eax
jmp 0x1061702
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push edi
push 0x100d140
push 4
call fcn.01055c69
add esp, 0x10
push ebx
push ebx
push ebx
push edi
call fcn.01057010
cmp eax, ebx
jge 0x1061712
push eax
push edi
push 0x100d108
push 2
call fcn.01055c69
add esp, 0x10
mov eax, 0x80004005
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.01047464
leave
ret 4
lea ecx, [ebp - 0x454]
call fcn.01065c22
lea ecx, [ebp - 0x454]
call fcn.01065c4e
test eax, eax
jne 0x106176e
call esi
cmp eax, ebx
jne 0x1061737
push 0x57
pop eax
cmp eax, ebx
jle 0x1061743
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x106174e
mov esi, 0x80004005
push esi
push edi
push 0x100d0b0
push 2
call fcn.01055c69
add esp, 0x10
lea ecx, [ebp - 0x454]
call fcn.01065c3a
mov eax, esi
jmp 0x1061701
push ebx
push 0x100cb80
lea eax, [ebp - 0x420]
push eax
call dword [ebp - 0x454]
test eax, eax
jne 0x10617b9
call esi
cmp eax, ebx
jne 0x1061790
push 0x57
pop eax
cmp eax, ebx
jle 0x106179c
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
mov dword [ebp - 0x418], eax
jl 0x1061a26
mov dword [ebp - 0x418], 0x8007000d
jmp 0x1061a26
mov ecx, dword [ebp - 0x434]
mov edi, 0x208
push edi
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x418], ebx
call fcn.01060ba0
test eax, eax
jne 0x10617e5
mov esi, 0x8000ffff
jmp 0x106175f
lea eax, [ebp - 0x20c]
push eax
call fcn.01055e3d
push dword [ebp - 0x41c]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.01035886
lea eax, [ebp - 0x20c]
push eax
call fcn.010561ca
test eax, eax
jne 0x1061822
mov esi, 0x80070002
jmp 0x106175f
push 0x100d058
push 4
call fcn.01055c2f
push edi
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov edi, eax
pop ecx
cmp edi, ebx
je 0x10619bf
push ebx
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.010608a3
test eax, eax
jl 0x10619b0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x4000
je 0x10618b9
lea ecx, [ebp - 0x42c]
call fcn.0106434f
lea ecx, [ebp - 0x42c]
call fcn.01055d4b
test eax, eax
je 0x10618ae
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [ebp - 0x42c]
test eax, eax
jne 0x10618ae
call esi
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x1009a90
push 2
call fcn.01055c69
add esp, 0x10
lea ecx, [ebp - 0x42c]
call fcn.01055d37
push ebx
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x420]
call dword [ebp - 0x448]
mov dword [ebp - 0x424], eax
call esi
push eax
push dword [ebp - 0x41c]
push 0x100d028
push 4
call fcn.01055c69
add esp, 0x10
cmp dword [0x10747e4], ebx
jne 0x10619b0
push 0x103
lea eax, [ebp - 0x414]
push eax
mov dword [0x10747e4], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10619b0
push 0x100cfb0
push 0x104
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x43c], ebx
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x440], ebx
mov dword [ebp - 0x430], ebx
call fcn.01035886
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.010569a5
test eax, eax
jne 0x10619b0
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.010569a5
test eax, eax
jne 0x10619b0
mov eax, dword [ebp - 0x440]
cmp eax, dword [ebp - 0x43c]
jne 0x10619a2
mov eax, dword [ebp - 0x430]
cmp eax, dword [ebp - 0x428]
je 0x10619b0
xor eax, eax
inc eax
mov dword [0x10747e4], eax
mov dword [ebp - 0x438], eax
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
cmp dword [ebp - 0x424], ebx
jne 0x1061a00
call esi
cmp eax, ebx
jle 0x10619cf
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
mov dword [ebp - 0x418], eax
jl 0x10619e3
mov dword [ebp - 0x418], 0x8007000d
push dword [ebp - 0x418]
push dword [ebp - 0x41c]
push 0x100cf78
push 2
call fcn.01055c69
add esp, 0x10
jmp 0x1061a13
push ebx
push dword [ebp - 0x424]
push dword [ebp - 0x420]
call dword [ebp - 0x44c]
push ebx
push dword [ebp - 0x420]
call dword [ebp - 0x450]
mov edi, dword [ebp - 0x41c]
push dword [ebp - 0x418]
push edi
push 0x100cf40
push 4
call fcn.01055c69
add esp, 0x10
cmp dword [ebp - 0x438], ebx
je 0x1061a56
mov ecx, dword [ebp - 0x434]
push edi
call fcn.0106166e
mov dword [ebp - 0x418], eax
mov esi, dword [ebp - 0x418]
jmp 0x106175f