Function at 0x10082890
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009f6fc
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x100e6018]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push esi
push edi
mov eax, dword [0x100e6018]
xor eax, esp
push eax
lea eax, [esp + 0x280]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
xor eax, eax
push 0x206
mov dword [esp + 0x28c], esi
push eax
mov word [esp + 0x74], ax
lea eax, [esp + 0x76]
push eax
call sub.MSVCR110.dll_memset
xor eax, eax
add esp, 0xc
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], esi
mov word [esp + 0x38], ax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], eax
mov word [esp + 0x20], ax
lea eax, [edi + 0x20]
lea ecx, [esp + 0x20]
mov byte [esp + 0x288], 2
mov ebx, dword [edi]
cmp ecx, eax
je 0x10082944
push 0xffffffffffffffff
push esi
push eax
call fcn.10008c80
lea eax, [edi + 8]
lea ecx, [esp + 0x38]
cmp ecx, eax
je 0x10082959
push 0xffffffffffffffff
push 0
push eax
call fcn.10008c80
cmp dword [esp + 0x4c], 8
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
lea eax, [esp + 0x40]
cmovae eax, dword [esp + 0x40]
push 0
push eax
push ebx
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10082ad5
cmp dword [esp + 0x34], 8
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x70]
push ecx
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x58]
push ecx
lea eax, [esp + 0x2c]
cmovae eax, dword [esp + 0x2c]
push 0
push eax
push esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x34], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10082ac2
mov eax, dword [esp + 0x50]
cmp eax, 1
je 0x100829e0
cmp eax, 2
jne 0x10082ac2
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10082a05
test al, 1
jne 0x10082ac2
shr eax, 1
cmp word [esp + eax*2 + 0x6a], 0
jne 0x10082ac2
mov ax, word [esp + 0x6c]
jmp 0x10082a0c
xor eax, eax
mov word [esp + 0x6c], ax
cmp byte [edi + 4], 0
je 0x10082a27
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
jmp 0x10082ac4
xor ecx, ecx
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], cx
mov byte [esp + 0x288], 3
test ax, ax
je 0x10082a61
lea ecx, [esp + 0x6c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10082a52
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x5c]
call fcn.100089b0
push 1
push 0x100a21f4
lea ecx, [esp + 0x5c]
call fcn.10011f70
push 0xffffffffffffffff
push 0
lea eax, [edi + 0x38]
push eax
lea ecx, [esp + 0x60]
call fcn.10011780
cmp dword [esp + 0x68], 8
lea eax, [esp + 0x54]
cmovae eax, dword [esp + 0x54]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
cmp dword [esp + 0x68], 8
jb 0x10082ac4
push dword [esp + 0x54]
mov eax, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
call eax
add esp, 4
jmp 0x10082ac4
xor bl, bl
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x10082add
push esi
call edi
xor esi, esi
jmp 0x10082add
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
cmp dword [esp + 0x34], 8
jb 0x10082af1
push dword [esp + 0x20]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
cmp dword [esp + 0x4c], 8
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
jb 0x10082b1d
push dword [esp + 0x38]
mov eax, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
call eax
add esp, 4
xor eax, eax
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], ax
test esi, esi
je 0x10082b3b
push esi
call edi
mov al, bl
mov ecx, dword [esp + 0x280]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.100947be
mov esp, ebp
pop ebp
ret