Function at 0x106168c
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 0x10616d1
mov eax, 0x80004003
jmp 0x1061720
push ebx
push ebx
push ebx
push 5
call fcn.01058973
test eax, eax
jne 0x10616e2
inc eax
jmp 0x1061720
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push edi
push 0x100d140
push 4
call fcn.01055c8a
add esp, 0x10
push ebx
push ebx
push ebx
push edi
call fcn.01057031
cmp eax, ebx
jge 0x1061730
push eax
push edi
push 0x100d108
push 2
call fcn.01055c8a
add esp, 0x10
mov eax, 0x80004005
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.01047480
leave
ret 4
lea ecx, [ebp - 0x454]
call fcn.01065c40
lea ecx, [ebp - 0x454]
call fcn.01065c6c
test eax, eax
jne 0x106178c
call esi
cmp eax, ebx
jne 0x1061755
push 0x57
pop eax
cmp eax, ebx
jle 0x1061761
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x106176c
mov esi, 0x80004005
push esi
push edi
push 0x100d0b0
push 2
call fcn.01055c8a
add esp, 0x10
lea ecx, [ebp - 0x454]
call fcn.01065c58
mov eax, esi
jmp 0x106171f
push ebx
push 0x100cb80
lea eax, [ebp - 0x420]
push eax
call dword [ebp - 0x454]
test eax, eax
jne 0x10617d7
call esi
cmp eax, ebx
jne 0x10617ae
push 0x57
pop eax
cmp eax, ebx
jle 0x10617ba
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
mov dword [ebp - 0x418], eax
jl 0x1061a44
mov dword [ebp - 0x418], 0x8007000d
jmp 0x1061a44
mov ecx, dword [ebp - 0x434]
mov edi, 0x208
push edi
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x418], ebx
call fcn.01060bbe
test eax, eax
jne 0x1061803
mov esi, 0x8000ffff
jmp 0x106177d
lea eax, [ebp - 0x20c]
push eax
call fcn.01055e5e
push dword [ebp - 0x41c]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.010358a6
lea eax, [ebp - 0x20c]
push eax
call fcn.010561eb
test eax, eax
jne 0x1061840
mov esi, 0x80070002
jmp 0x106177d
push 0x100d058
push 4
call fcn.01055c50
push edi
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov edi, eax
pop ecx
cmp edi, ebx
je 0x10619dd
push ebx
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.010608c1
test eax, eax
jl 0x10619ce
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x4000
je 0x10618d7
lea ecx, [ebp - 0x42c]
call fcn.0106436d
lea ecx, [ebp - 0x42c]
call fcn.01055d6c
test eax, eax
je 0x10618cc
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [ebp - 0x42c]
test eax, eax
jne 0x10618cc
call esi
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x1009a90
push 2
call fcn.01055c8a
add esp, 0x10
lea ecx, [ebp - 0x42c]
call fcn.01055d58
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.01055c8a
add esp, 0x10
cmp dword [0x10747e4], ebx
jne 0x10619ce
push 0x103
lea eax, [ebp - 0x414]
push eax
mov dword [0x10747e4], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10619ce
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.010358a6
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.010569c6
test eax, eax
jne 0x10619ce
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.010569c6
test eax, eax
jne 0x10619ce
mov eax, dword [ebp - 0x440]
cmp eax, dword [ebp - 0x43c]
jne 0x10619c0
mov eax, dword [ebp - 0x430]
cmp eax, dword [ebp - 0x428]
je 0x10619ce
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 0x1061a1e
call esi
cmp eax, ebx
ret
jle 0x10619ed
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
mov dword [ebp - 0x418], eax
jl 0x1061a01
mov dword [ebp - 0x418], 0x8007000d
push dword [ebp - 0x418]
push dword [ebp - 0x41c]
push 0x100cf78
push 2
call fcn.01055c8a
add esp, 0x10
jmp 0x1061a31
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.01055c8a
add esp, 0x10
cmp dword [ebp - 0x438], ebx
je 0x1061a74
mov ecx, dword [ebp - 0x434]
push edi
call fcn.0106168c
mov dword [ebp - 0x418], eax
mov esi, dword [ebp - 0x418]
jmp 0x106177d