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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push edi
push edi
push edi
push 5
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x424], edi
call fcn.0105989e
mov ebx, eax
cmp ebx, edi
jne 0x10642d2
push 0x5a
push 4
call fcn.01057146
test eax, eax
je 0x10642d2
xor eax, eax
inc eax
jmp 0x10642d4
xor eax, eax
cmp esi, edi
mov dword [ebp - 0x438], edi
jne 0x10642e8
mov eax, 0x80004003
jmp 0x10646ba
cmp ebx, edi
jne 0x10642f8
cmp eax, edi
jne 0x10642f8
xor eax, eax
inc eax
jmp 0x10646ba
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push dword [ebp - 0x41c]
push 0x100dc10
push 4
call fcn.0105e5ad
add esp, 0x10
push edi
push edi
push edi
push dword [ebp - 0x41c]
call fcn.01057e61
cmp eax, edi
jge 0x1064348
push eax
push dword [ebp - 0x41c]
push 0x100dbd8
push 2
call fcn.0105e5ad
add esp, 0x10
mov eax, 0x80004005
jmp 0x10646ba
cmp ebx, edi
mov dword [ebp - 0x418], 1
je 0x106467a
lea ecx, [ebp - 0x454]
call fcn.01072b6e
lea ecx, [ebp - 0x454]
call fcn.01072b9a
test eax, eax
jne 0x10643be
call esi
cmp eax, edi
jne 0x106437f
push 0x57
pop eax
cmp eax, edi
jle 0x106438b
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x1064396
mov esi, 0x80004005
push esi
push dword [ebp - 0x41c]
push 0x100db80
push 2
call fcn.0105e5ad
add esp, 0x10
lea ecx, [ebp - 0x454]
call fcn.01072b86
mov eax, esi
jmp 0x10646ba
push edi
push 0x100d590
lea eax, [ebp - 0x420]
push eax
call dword [ebp - 0x454]
test eax, eax
jne 0x1064409
call esi
cmp eax, edi
jne 0x10643e0
push 0x57
pop eax
cmp eax, edi
jle 0x10643ec
and eax, 0xffff
or eax, 0x80070000
cmp eax, edi
mov dword [ebp - 0x418], eax
jl 0x106466f
mov dword [ebp - 0x418], 0x8007000d
jmp 0x106466f
mov ecx, dword [ebp - 0x434]
mov ebx, 0x208
push ebx
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x418], edi
call fcn.010636fe
test eax, eax
jne 0x1064435
mov esi, 0x8000ffff
jmp 0x10643ac
lea eax, [ebp - 0x20c]
push eax
call fcn.01056bba
push dword [ebp - 0x41c]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.01034cee
lea eax, [ebp - 0x20c]
push eax
call fcn.01056f43
test eax, eax
jne 0x1064472
mov esi, 0x80070002
jmp 0x10643ac
push 0x100db28
push 4
call fcn.0105e573
push ebx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov ebx, eax
cmp ebx, edi
pop ecx
je 0x106460e
push edi
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.01063404
test eax, eax
jl 0x10645ff
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test ax, 0x4000
je 0x1064508
lea ecx, [ebp - 0x42c]
call fcn.01056aa6
lea ecx, [ebp - 0x42c]
call fcn.01056ac9
test eax, eax
je 0x10644fd
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [ebp - 0x42c]
test eax, eax
jne 0x10644fd
call esi
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x100a510
push 2
call fcn.0105e5ad
add esp, 0x10
lea ecx, [ebp - 0x42c]
call fcn.01056ab5
push edi
push ebx
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 0x100daf8
push 4
call fcn.0105e5ad
add esp, 0x10
cmp dword [0x1082214], edi
jne 0x10645ff
push 0x103
lea eax, [ebp - 0x414]
push eax
mov dword [0x1082214], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10645ff
push 0x100da80
push 0x104
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x43c], edi
mov dword [ebp - 0x428], edi
mov dword [ebp - 0x440], edi
mov dword [ebp - 0x430], edi
call fcn.01034cee
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.010577fc
test eax, eax
jne 0x10645ff
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.010577fc
test eax, eax
jne 0x10645ff
mov eax, dword [ebp - 0x440]
cmp eax, dword [ebp - 0x43c]
jne 0x10645f1
mov eax, dword [ebp - 0x430]
cmp eax, dword [ebp - 0x428]
je 0x10645ff
xor eax, eax
inc eax
mov dword [0x1082214], eax
mov dword [ebp - 0x438], eax
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
cmp dword [ebp - 0x424], edi
pop ecx
jne 0x106464f
call esi
cmp eax, edi
jle 0x106461e
and eax, 0xffff
or eax, 0x80070000
cmp eax, edi
mov dword [ebp - 0x418], eax
jl 0x1064632
mov dword [ebp - 0x418], 0x8007000d
push dword [ebp - 0x418]
push dword [ebp - 0x41c]
push 0x100da4c
push 2
call fcn.0105e5ad
add esp, 0x10
jmp 0x1064662
push edi
push dword [ebp - 0x424]
push dword [ebp - 0x420]
call dword [ebp - 0x44c]
push edi
push dword [ebp - 0x420]
call dword [ebp - 0x450]
lea ecx, [ebp - 0x454]
call fcn.01072b86
push dword [ebp - 0x418]
push dword [ebp - 0x41c]
push 0x100da14
push 4
call fcn.0105e5ad
add esp, 0x10
cmp dword [ebp - 0x438], edi
je 0x10646b4
push dword [ebp - 0x41c]
mov ecx, dword [ebp - 0x434]
call fcn.0106427b
mov dword [ebp - 0x418], eax
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047417
leave
ret 4