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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f676c
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x5374e4]
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, ecx
mov dword [ebp - 0x224], eax
cmp dword [eax + 0x3c], 0
je 0x43647f
mov ebx, dword [eax + 0x24]
cmp dword [ebx - 0xc], 0
je 0x43647f
mov edi, dword [eax + 0x28]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov esi, dword [edi - 0xc]
call fcn.0049a810
add esp, 0xc
mov dword [ebp - 0x228], 0x104
lea eax, [ebp - 0x228]
mov dword [ebp - 0x22c], 1
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x22c]
push eax
xor eax, eax
test esi, esi
cmove edi, eax
mov eax, dword [ebp - 0x224]
push edi
push ebx
push dword [eax + 0x3c]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
call fcn.0040db10
mov ecx, eax
test ecx, ecx
je 0x4364a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x21c]
call fcn.004159a0
test al, al
jne 0x4360c2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4360a0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040dd50
mov esi, dword [ebp - 0x21c]
mov edi, esi
mov dword [ebp - 4], 1
movzx eax, word [esi]
push eax
call fcn.004c7c22
add esp, 4
test eax, eax
je 0x4361b5
movzx eax, word [edi + 2]
add edi, 2
push eax
call fcn.004c7c22
add esp, 4
test eax, eax
jne 0x4360e5
cmp edi, esi
je 0x4361b5
mov edx, dword [esi - 0xc]
sub edi, esi
sar edi, 1
test edx, edx
js 0x4364aa
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x436133
push edx
lea ecx, [ebp - 0x21c]
call fcn.00403660
mov esi, dword [ebp - 0x21c]
mov eax, dword [esi - 0xc]
lea edx, [esi + edi*2]
mov ebx, eax
sub ebx, edi
lea ecx, [ebx*2 + 2]
test ecx, ecx
je 0x436190
test edx, edx
jne 0x436163
call fcn.004a585e
mov dword [eax], 0x16
call fcn.004a5738
mov eax, 0x16
jmp 0x436192
lea eax, [eax*2 + 2]
cmp eax, ecx
jae 0x436185
call fcn.004a585e
mov dword [eax], 0x22
call fcn.004a5738
mov eax, 0x22
jmp 0x436192
push ecx
push edx
push esi
call fcn.0049a290
add esp, 0xc
xor eax, eax
push eax
call fcn.00406080
add esp, 4
test ebx, ebx
js 0x4364aa
cmp ebx, dword [esi - 8]
jg 0x4364aa
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
movzx eax, word [esi]
xor edi, edi
mov ebx, esi
test ax, ax
je 0x43622e
mov ecx, eax
push ecx
call fcn.004c7c22
add esp, 4
test eax, eax
je 0x4361db
test edi, edi
mov eax, ebx
cmovne eax, edi
mov edi, eax
jmp 0x4361dd
xor edi, edi
movzx eax, word [ebx + 2]
add ebx, 2
mov ecx, eax
test ax, ax
jne 0x4361c3
test edi, edi
je 0x43622e
sub edi, esi
sar edi, 1
js 0x4364b4
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x43621c
push edi
lea ecx, [ebp - 0x21c]
call fcn.00403660
mov esi, dword [ebp - 0x21c]
cmp edi, dword [esi - 8]
jg 0x4364aa
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
mov eax, dword [esi - 0xc]
or ebx, 0xffffffff
test eax, eax
jne 0x43623f
xor edi, edi
jmp 0x43645f
cmp eax, 1
jg 0x436255
lea eax, [esi - 0x10]
push eax
call fcn.004034c0
add esp, 4
add eax, 0x10
jmp 0x436286
mov ecx, dword [esi - 0x10]
test ecx, ecx
je 0x436265
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x436271
call fcn.0040db10
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push 1
push esi
lea ecx, [ebp - 0x220]
call fcn.00435c20
mov eax, dword [ebp - 0x220]
mov edx, 0x509690
mov ecx, eax
nop dword [eax]
mov di, word [ecx]
cmp di, word [edx]
jne 0x4362b6
test di, di
je 0x4362b2
mov di, word [ecx + 2]
cmp di, word [edx + 2]
jne 0x4362b6
add ecx, 4
add edx, 4
test di, di
jne 0x436290
xor edi, edi
jmp 0x4362bb
sbb edi, edi
or edi, 1
lea edx, [eax - 0x10]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4362d2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x436324
mov eax, dword [esi - 0xc]
lea ecx, [ebp - 0x21c]
dec eax
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00436570
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 2
call fcn.00415800
mov edx, dword [ebp - 0x220]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43631e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x21c]
push 1
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00436570
mov ecx, 0x509690
mov eax, dword [eax]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x436366
test dx, dx
je 0x436362
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x436366
add eax, 4
add ecx, 4
test dx, dx
jne 0x436340
xor edi, edi
jmp 0x43636b
sbb edi, edi
or edi, 1
mov edx, dword [ebp - 0x220]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x436388
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x4363da
mov eax, dword [esi - 0xc]
lea ecx, [ebp - 0x21c]
dec eax
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00436500
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 3
call fcn.00415800
mov edx, dword [ebp - 0x220]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4363d4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x224]
mov edi, dword [eax + 0x2c]
cmp dword [edi - 0xc], 0
je 0x436456
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x436413
push 0x104
lea ecx, [ebp - 0x21c]
call fcn.00403660
mov esi, dword [ebp - 0x21c]
cmp dword [esi - 8], 0x104
jl 0x4364be
push edi
xor eax, eax
mov dword [esi - 0xc], 0x104
push esi
mov word [esi + 0x208], ax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [esi - 8]
push esi
call fcn.004b9823
add esp, 8
test eax, eax
js 0x4364aa
cmp eax, dword [esi - 8]
jg 0x4364aa
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x43647b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
jmp 0x436484
mov eax, 1
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.0046a581
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004034a0
push 0x80070057
call fcn.004034a0
push 0x80070057
call fcn.004034a0
push 0x80070057
call fcn.004034a0
int3