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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb88c
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x53000c]
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 + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x244], eax
push 0x20a
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 1
push 0
push eax
mov dword [ebp - 0x240], 0
call fcn.004bcaf0
add esp, 0xc
lea ecx, [ebp - 0x240]
cmp dword [ebp + 0x24], 8
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push ecx
push 0x20019
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x240]
test ecx, ecx
je 0x415fcb
cmp dword [ebp + 0x3c], 8
lea edx, [ebp - 0x23c]
push edx
lea edx, [ebp - 0x220]
mov dword [ebp - 0x23c], 0x104
push edx
push 0
lea eax, [ebp + 0x28]
cmovae eax, dword [ebp + 0x28]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp word [ebp - 0x220], 0
je 0x41624a
xor eax, eax
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416000
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.0041a5b0
xor eax, eax
mov byte [ebp - 4], 2
push eax
push 0x51c79c
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
call fcn.0041a5b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x278]
push 1
xor eax, eax
mov dword [ebp - 0x268], 0
push 0x51c810
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
call fcn.0041a5b0
mov byte [ebp - 4], 5
mov ebx, dword [ebp - 0x264]
mov edi, dword [ebp - 0x268]
mov esi, dword [ebp - 0x278]
nop dword [eax]
mov edx, dword [ebp - 0x228]
lea eax, [ebp - 0x278]
cmp ebx, 8
lea ecx, [ebp - 0x238]
push edi
cmovae eax, esi
cmp dword [ebp - 0x224], 8
push eax
cmovae ecx, dword [ebp - 0x238]
push 0
call fcn.0041b200
add esp, 0xc
cmp eax, 0xffffffff
je 0x416101
cmp dword [ebp - 0x24c], 8
lea ecx, [ebp - 0x260]
push dword [ebp - 0x250]
cmovae ecx, dword [ebp - 0x260]
push ecx
push edi
push eax
lea ecx, [ebp - 0x238]
call fcn.0041a410
jmp 0x4160a0
mov byte [ebp - 4], 4
cmp ebx, 8
jb 0x416139
lea ecx, [ebx*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x41612f
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4162f0
push ecx
push esi
call fcn.0048e9ad
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x24c]
cmp edx, 8
jb 0x41617d
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416173
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4162f5
push edx
push ecx
call fcn.0048e9ad
add esp, 8
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41620a
mov ecx, dword [ebp - 0x244]
lea eax, [ebp - 0x238]
cmp ecx, eax
je 0x4161c6
cmp dword [ebp - 0x224], 8
push dword [ebp - 0x228]
cmovae eax, dword [ebp - 0x238]
push eax
call fcn.0041a5b0
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x416206
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4161fc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4162fa
push edx
push ecx
call fcn.0048e9ad
add esp, 8
mov bl, 1
jmp 0x41624c
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x41624a
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416240
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4162ff
push edx
push ecx
call fcn.0048e9ad
add esp, 8
xor bl, bl
mov edx, dword [ebp + 0x24]
cmp edx, 8
jb 0x416286
mov ecx, dword [ebp + 0x10]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41627c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416304
push edx
push ecx
call fcn.0048e9ad
add esp, 8
mov edx, dword [ebp + 0x3c]
xor eax, eax
mov dword [ebp + 0x20], 0
mov dword [ebp + 0x24], 7
mov word [ebp + 0x10], ax
cmp edx, 8
jb 0x4162d0
mov ecx, dword [ebp + 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4162c6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416309
push edx
push ecx
call fcn.0048e9ad
add esp, 8
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.0048e99c
mov esp, ebp
pop ebp
ret 0x38
call fcn.004c5929
call fcn.004c5929
call fcn.004c5929
call fcn.004c5929
call fcn.004c5929
call fcn.004c5929
int3