Function at 0x1001b5d0
Capabilities:
Check if file exists
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101544f8
mov eax, dword fs:[0]
push eax
sub esp, 0x318
mov eax, dword [0x101a4494]
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 eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x284], 0
movzx eax, byte [ebp + 0x18]
xor eax, 1
mov dword [ebp - 4], 0
inc eax
shl eax, 8
or eax, 0x20019
push eax
push ebx
push ecx
lea ecx, [ebp - 0x28c]
call fcn.1001b160
mov edi, dword [ebp - 0x28c]
mov dword [ebp - 0x27c], eax
test eax, eax
je 0x1001b721
push 0x98
lea eax, [ebp - 0x324]
push 0
push eax
call fcn.1012e610
add esp, 0xc
lea ecx, [ebp - 0x324]
call fcn.100090f0
mov esi, eax
push 0x101620c4
push esi
mov byte [ebp - 4], 1
call fcn.100086f0
push ebx
push esi
call fcn.100086f0
push str._Failed:
push esi
call fcn.100086f0
add esp, 0x18
mov ecx, esi
push dword [ebp - 0x27c]
call fcn.10015f30
cmp dword [0x101aa314], 0
mov byte [ebp - 4], 2
je 0x1001b70f
lea eax, [ebp - 0x324]
push eax
call fcn.10008a90
add esp, 4
lea eax, [ebp - 0x248]
lea ecx, [ebp - 0x320]
push eax
call fcn.1000d2e0
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x248]
call fcn.100098e0
lea ecx, [ebp - 0x324]
call fcn.10009fa0
xor bl, bl
jmp 0x1001b9ec
mov ecx, esi
mov dword [ebp - 0x238], 0
xor eax, eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001b743
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x248]
call fcn.1000bc10
xor eax, eax
mov byte [ebp - 4], 3
push eax
push 0x10161b24
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
call fcn.1000bc10
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x230]
push edi
push eax
call fcn.1001ba70
add esp, 0x10
lea ecx, [ebp - 0x260]
call fcn.100098e0
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 7
call fcn.100098e0
push 0x98
lea eax, [ebp - 0x324]
push 0
push eax
call fcn.1012e610
add esp, 0xc
lea ecx, [ebp - 0x324]
call fcn.100090f0
mov esi, eax
push str.valu_
push esi
mov byte [ebp - 4], 8
call fcn.100086f0
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae ecx, dword [ebp - 0x230]
push ecx
push esi
call fcn.100137f0
add esp, 0x14
cmp dword [0x101aa314], 0
mov byte [ebp - 4], 9
je 0x1001b877
lea eax, [ebp - 0x324]
push eax
call fcn.10008a90
add esp, 4
lea eax, [ebp - 0x278]
lea ecx, [ebp - 0x320]
push eax
call fcn.1000d2e0
cmp dword [ebp - 0x264], 8
lea eax, [ebp - 0x278]
cmovae eax, dword [ebp - 0x278]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x278]
call fcn.100098e0
lea ecx, [ebp - 0x324]
call fcn.10009fa0
cmp dword [ebp - 0x220], 0
mov byte [ebp - 4], 7
jne 0x1001b896
xor bl, bl
jmp 0x1001b9e1
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1012e610
mov ecx, dword [ebp - 0x280]
lea eax, [ebp - 0x230]
add esp, 0xc
test ecx, ecx
je 0x1001b942
cmp dword [ebp - 0x21c], 8
push ecx
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
test edi, edi
jne 0x1001b9d8
push 0x98
push eax
lea eax, [ebp - 0x324]
push eax
call fcn.1012e610
add esp, 0xc
lea ecx, [ebp - 0x324]
call fcn.100090f0
mov esi, eax
push str.path:
push esi
mov byte [ebp - 4], 0xa
call fcn.100086f0
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.100086f0
push str._err:
push esi
call fcn.100086f0
add esp, 0x18
jmp 0x1001b9bd
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
test edi, edi
jne 0x1001b9d8
push 0x98
push eax
lea eax, [ebp - 0x324]
push eax
call fcn.1012e610
add esp, 0xc
lea ecx, [ebp - 0x324]
call fcn.100090f0
mov esi, eax
push str.path:
push esi
mov byte [ebp - 4], 0xb
call fcn.100086f0
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae ecx, dword [ebp - 0x230]
push ecx
push esi
call fcn.100137f0
push str._err:
push esi
call fcn.100086f0
add esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.1000f570
lea ecx, [ebp - 0x324]
call fcn.10009a70
test edi, edi
mov edi, dword [ebp - 0x28c]
setne bl
lea ecx, [ebp - 0x230]
call fcn.100098e0
test edi, edi
je 0x1001b9f7
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
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.100f4dc3
mov esp, ebp
pop ebp
ret