Function at 0x429ee0
Capabilities:
Check if file exists
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4690bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3f4
push ebx
push ebp
push esi
push edi
mov eax, 0x53
mov word [esp + 0xdc], ax
mov ecx, 0x4f
mov word [esp + 0xde], cx
mov edx, 0x46
mov word [esp + 0xe0], dx
mov eax, 0x54
mov word [esp + 0xe2], ax
mov ecx, 0x57
mov word [esp + 0xe4], cx
mov edx, 0x41
mov word [esp + 0xe6], dx
mov eax, 0x52
mov word [esp + 0xe8], ax
mov ecx, 0x45
mov word [esp + 0xea], cx
mov edx, 0x5c
mov eax, edx
mov word [esp + 0xec], dx
mov word [esp + 0xee], ax
mov ecx, 0x4d
mov word [esp + 0xf0], cx
mov edx, 0x69
mov word [esp + 0xf2], dx
mov ecx, 0x72
mov word [esp + 0xf6], cx
mov edx, 0x6f
mov ecx, edx
mov word [esp + 0xf8], dx
mov word [esp + 0xfc], cx
mov eax, 0x63
mov word [esp + 0xf4], ax
mov eax, 0x73
mov word [esp + 0xfa], ax
mov edx, 0x66
mov word [esp + 0xfe], dx
mov ecx, 0x5c
mov edx, ecx
mov word [esp + 0x102], cx
mov eax, 0x74
mov word [esp + 0x100], ax
mov word [esp + 0x104], dx
mov ecx, 0x69
mov word [esp + 0x108], cx
mov eax, 0x57
mov word [esp + 0x106], ax
mov edx, 0x6e
mov word [esp + 0x10a], dx
mov ecx, 0x6f
mov word [esp + 0x10e], cx
mov eax, 0x64
mov word [esp + 0x10c], ax
mov edx, 0x77
mov ecx, 0x5c
mov word [esp + 0x110], dx
mov edx, ecx
mov eax, 0x73
mov word [esp + 0x112], ax
mov word [esp + 0x114], cx
mov word [esp + 0x116], dx
mov eax, 0x43
mov edx, 0x72
mov word [esp + 0x118], ax
mov ecx, 0x75
mov eax, edx
mov word [esp + 0x11a], cx
mov ecx, 0x65
mov word [esp + 0x11c], dx
mov word [esp + 0x11e], ax
xor ebx, ebx
mov edx, 0x6e
mov eax, 0x74
mov word [esp + 0x120], cx
mov dword [esp + 0x34], ebx
mov word [esp + 0x122], dx
mov word [esp + 0x124], ax
mov ecx, 0x56
mov word [esp + 0x126], cx
mov edx, 0x65
mov word [esp + 0x128], dx
mov ecx, 0x73
mov word [esp + 0x12c], cx
mov eax, 0x72
mov word [esp + 0x12a], ax
mov edx, 0x69
mov word [esp + 0x12e], dx
mov ecx, 0x6e
mov word [esp + 0x132], cx
mov eax, 0x6f
mov word [esp + 0x130], ax
mov edx, 0x5c
mov eax, edx
mov word [esp + 0x134], dx
mov word [esp + 0x136], ax
mov ecx, 0x41
mov word [esp + 0x138], cx
mov edx, 0x70
mov eax, edx
mov word [esp + 0x13a], dx
mov word [esp + 0x13c], ax
mov ecx, 0x20
mov word [esp + 0x13e], cx
mov edx, 0x50
mov word [esp + 0x140], dx
mov ecx, 0x74
mov word [esp + 0x144], cx
mov eax, 0x61
mov word [esp + 0x142], ax
mov edx, 0x68
mov word [esp + 0x146], dx
mov ecx, 0x5c
mov edx, ecx
mov word [esp + 0x14a], cx
mov word [esp + 0x14c], dx
mov eax, 0x73
mov word [esp + 0x148], ax
mov eax, 0x33
mov word [esp + 0x14e], ax
mov ecx, 0x36
mov word [esp + 0x150], cx
mov edx, 0x30
mov word [esp + 0x152], dx
mov eax, 0x63
mov word [esp + 0x154], ax
mov ecx, 0x68
mov word [esp + 0x156], cx
mov edx, 0x72
mov word [esp + 0x158], dx
mov eax, 0x6f
mov word [esp + 0x15a], ax
mov ecx, 0x6d
mov word [esp + 0x15c], cx
mov edx, 0x65
mov ecx, edx
mov word [esp + 0x15e], dx
mov eax, 0x2e
mov word [esp + 0x160], ax
mov eax, ecx
mov edx, 0x78
mov word [esp + 0x162], cx
mov word [esp + 0x164], dx
xor ecx, ecx
mov edx, 0x53
mov word [esp + 0x166], ax
mov word [esp + 0x168], cx
mov word [esp + 0x16c], dx
mov eax, 0x4f
mov ecx, 0x46
mov edx, 0x54
mov word [esp + 0x16e], ax
mov word [esp + 0x170], cx
mov word [esp + 0x172], dx
mov eax, 0x57
mov ecx, 0x41
mov edx, 0x52
mov word [esp + 0x174], ax
mov word [esp + 0x176], cx
mov word [esp + 0x178], dx
mov eax, 0x45
mov word [esp + 0x17a], ax
mov ecx, 0x5c
mov edx, ecx
mov word [esp + 0x17c], cx
mov word [esp + 0x17e], dx
mov eax, 0x4d
mov word [esp + 0x180], ax
mov ecx, 0x69
mov word [esp + 0x182], cx
mov eax, 0x72
mov word [esp + 0x186], ax
mov ecx, 0x6f
mov eax, ecx
mov word [esp + 0x188], cx
mov word [esp + 0x18c], ax
mov edx, 0x63
mov word [esp + 0x184], dx
mov edx, 0x73
mov word [esp + 0x18a], dx
mov ecx, 0x66
mov word [esp + 0x18e], cx
mov eax, 0x5c
mov ecx, eax
mov word [esp + 0x192], ax
mov word [esp + 0x194], cx
mov edx, 0x74
mov word [esp + 0x190], dx
mov eax, 0x69
mov word [esp + 0x198], ax
mov edx, 0x57
mov word [esp + 0x196], dx
mov ecx, 0x6e
mov word [esp + 0x19a], cx
mov eax, 0x6f
mov word [esp + 0x19e], ax
mov edx, 0x64
mov word [esp + 0x19c], dx
mov ecx, 0x77
mov word [esp + 0x1a0], cx
mov eax, 0x5c
mov ecx, eax
mov word [esp + 0x1a4], ax
mov word [esp + 0x1a6], cx
mov edx, 0x73
mov word [esp + 0x1a2], dx
mov edx, 0x43
mov word [esp + 0x1a8], dx
mov eax, 0x75
mov word [esp + 0x1aa], ax
mov ecx, 0x72
mov edx, ecx
mov word [esp + 0x1ac], cx
mov word [esp + 0x1ae], dx
mov eax, 0x65
mov word [esp + 0x1b0], ax
mov ecx, 0x6e
mov word [esp + 0x1b2], cx
mov edx, 0x74
mov eax, 0x56
mov word [esp + 0x1b4], dx
mov word [esp + 0x1b6], ax
mov ecx, 0x65
mov word [esp + 0x1b8], cx
mov edx, 0x72
mov eax, 0x73
mov ecx, 0x69
mov word [esp + 0x1ba], dx
mov word [esp + 0x1bc], ax
mov word [esp + 0x1be], cx
mov edx, 0x6f
mov eax, 0x6e
mov ecx, 0x5c
mov word [esp + 0x1c0], dx
mov word [esp + 0x1c2], ax
mov edx, ecx
mov eax, 0x41
mov word [esp + 0x1c4], cx
mov word [esp + 0x1c6], dx
mov word [esp + 0x1c8], ax
mov ecx, 0x70
mov edx, ecx
mov word [esp + 0x1ca], cx
mov word [esp + 0x1cc], dx
mov eax, 0x20
mov word [esp + 0x1ce], ax
mov ecx, 0x50
mov word [esp + 0x1d0], cx
mov edx, 0x61
mov word [esp + 0x1d2], dx
mov eax, 0x74
mov word [esp + 0x1d4], ax
mov ecx, 0x68
mov word [esp + 0x1d6], cx
mov edx, 0x73
mov word [esp + 0x1d8], dx
mov eax, 0x5c
mov ecx, eax
mov word [esp + 0x1dc], cx
mov word [esp + 0x1da], ax
mov edx, 0x33
mov word [esp + 0x1de], dx
mov ecx, 0x30
mov word [esp + 0x1e2], cx
mov edx, 0x73
mov word [esp + 0x1e4], dx
mov eax, 0x36
mov word [esp + 0x1e0], ax
mov eax, 0x65
mov word [esp + 0x1e6], ax
mov word [esp + 0x1ec], ax
mov ecx, 0x36
mov word [esp + 0x1e8], cx
mov edx, 0x2e
mov word [esp + 0x1ea], dx
mov edx, eax
xor eax, eax
mov word [esp + 0x1f0], dx
mov word [esp + 0x1f2], ax
mov ecx, 0x78
mov word [esp + 0x1ee], cx
mov ecx, 0x53
mov word [esp + 0x54], cx
mov edx, 0x4f
mov word [esp + 0x56], dx
mov eax, 0x46
mov word [esp + 0x58], ax
mov ecx, 0x54
mov word [esp + 0x5a], cx
mov edx, 0x57
mov word [esp + 0x5c], dx
mov eax, 0x41
mov word [esp + 0x5e], ax
mov ecx, 0x52
mov word [esp + 0x60], cx
mov edx, 0x45
mov word [esp + 0x62], dx
mov eax, 0x5c
mov ecx, eax
mov word [esp + 0x64], ax
mov edx, 0x4d
mov word [esp + 0x66], cx
mov word [esp + 0x68], dx
mov eax, 0x69
mov word [esp + 0x6a], ax
mov ecx, 0x63
mov edx, 0x72
mov eax, 0x6f
mov word [esp + 0x6c], cx
mov word [esp + 0x6e], dx
mov edx, eax
mov ecx, 0x73
mov word [esp + 0x70], ax
mov eax, 0x66
mov word [esp + 0x72], cx
mov word [esp + 0x74], dx
mov edx, 0x5c
mov ecx, 0x74
mov word [esp + 0x76], ax
mov word [esp + 0x78], cx
mov word [esp + 0x7a], dx
mov eax, edx
mov word [esp + 0x7c], ax
mov edx, 0x69
mov word [esp + 0x80], dx
mov ecx, 0x57
mov word [esp + 0x7e], cx
mov eax, 0x6e
mov word [esp + 0x82], ax
mov edx, 0x6f
mov word [esp + 0x86], dx
mov ecx, 0x64
mov word [esp + 0x84], cx
mov eax, 0x77
mov word [esp + 0x88], ax
mov edx, 0x5c
mov eax, edx
mov word [esp + 0x8c], dx
mov word [esp + 0x8e], ax
mov ecx, 0x73
mov word [esp + 0x8a], cx
mov ecx, 0x43
mov word [esp + 0x90], cx
mov eax, 0x72
mov ecx, eax
mov word [esp + 0x94], ax
mov word [esp + 0x96], cx
mov edx, 0x75
mov word [esp + 0x92], dx
mov edx, 0x65
mov word [esp + 0x98], dx
mov eax, 0x6e
mov word [esp + 0x9a], ax
mov ecx, 0x74
mov word [esp + 0x9c], cx
mov edx, 0x56
mov word [esp + 0x9e], dx
mov eax, 0x65
mov word [esp + 0xa0], ax
mov ecx, 0x72
mov word [esp + 0xa2], cx
mov edx, 0x73
mov word [esp + 0xa4], dx
mov eax, 0x69
mov word [esp + 0xa6], ax
mov ecx, 0x6f
mov word [esp + 0xa8], cx
mov eax, 0x5c
mov ecx, eax
mov word [esp + 0xac], ax
mov edx, 0x6e
mov word [esp + 0xaa], dx
mov word [esp + 0xae], cx
mov eax, 0x70
mov ecx, eax
mov edx, 0x41
mov word [esp + 0xb0], dx
mov word [esp + 0xb2], ax
mov word [esp + 0xb4], cx
mov edx, 0x20
mov word [esp + 0xb6], dx
mov eax, 0x50
mov ecx, 0x61
mov word [esp + 0xb8], ax
mov word [esp + 0xba], cx
mov edx, 0x74
mov word [esp + 0xbc], dx
mov eax, 0x68
mov ecx, 0x73
mov edx, 0x5c
mov word [esp + 0xbe], ax
mov word [esp + 0xc0], cx
mov eax, edx
mov ecx, 0x33
mov word [esp + 0xc2], dx
mov word [esp + 0xc4], ax
mov word [esp + 0xc6], cx
mov edx, 0x36
mov eax, 0x30
mov ecx, 0x73
mov word [esp + 0xc8], dx
mov word [esp + 0xca], ax
mov word [esp + 0xcc], cx
mov edx, 0x65
mov ecx, edx
mov eax, 0x2e
mov word [esp + 0xd0], ax
mov eax, ecx
mov word [esp + 0xce], dx
mov word [esp + 0xd2], cx
xor ecx, ecx
mov edx, 0x78
mov word [esp + 0xd4], dx
mov word [esp + 0xd6], ax
mov word [esp + 0xd8], cx
cmp dword [esp + 0x414], ebx
je 0x42abbd
lea edx, [esp + 0x3c]
push edx
call fcn.00424320
mov dword [esp + 0x40c], ebx
xor eax, eax
mov word [esp + 0x1c], ax
mov ebp, 7
lea eax, [esp + 0x16c]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x42a910
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x170]
push ecx
lea esi, [esp + 0x20]
call fcn.004018a0
mov edx, esi
push edx
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x414], 1
call fcn.00426c50
mov edi, 8
mov byte [esp + 0x40c], 0
cmp dword [esp + 0x30], edi
jb 0x42a966
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0044b6e3
add esp, 4
xor edx, edx
lea eax, [esp + 0xdc]
mov word [esp + 0x1c], dx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x42a980
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xe0]
push eax
lea esi, [esp + 0x20]
call fcn.004018a0
mov ecx, esi
push ecx
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0x414], 2
call fcn.00426c50
mov byte [esp + 0x40c], 0
cmp dword [esp + 0x30], edi
jb 0x42a9d1
mov eax, dword [esp + 0x1c]
push eax
call fcn.0044b6e3
add esp, 4
xor ecx, ecx
lea eax, [esp + 0x54]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x42a9e7
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x58]
push edx
lea esi, [esp + 0x20]
call fcn.004018a0
mov eax, esi
push eax
lea ecx, [esp + 0x40]
push ecx
mov byte [esp + 0x414], 3
call fcn.00426c50
cmp dword [esp + 0x30], edi
jb 0x42aa2d
mov edx, dword [esp + 0x1c]
push edx
call fcn.0044b6e3
add esp, 4
mov ecx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x48]
sub ecx, ebp
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
xor edi, edi
add esi, edx
je 0x42ab7a
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1fe]
push ecx
mov word [esp + 0x200], ax
call fcn.0044e9d0
add esp, 0xc
mov dword [esp + 0x38], 0x208
cmp edi, esi
jb 0x42aa87
call fcn.0044be90
mov ebp, dword [esp + 0x48]
cmp dword [ebx + ebp + 0x18], 8
jb 0x42aa94
mov ebp, dword [ebx + ebp + 4]
jmp 0x42aa98
lea ebp, [ebx + ebp + 4]
lea edx, [esp + 0x14]
push edx
push 1
push 0
push ebp
push 0x80000002
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42aafe
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1f8]
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x42aae8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x42aafe
lea eax, [esp + 0x1f4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42ab29
mov ecx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x48]
sub ecx, ebp
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
inc edi
add esi, edx
add ebx, 0x1c
cmp edi, esi
jb 0x42aa52
jmp 0x42ab78
mov eax, dword [esp + 0x414]
lea esi, [esp + 0x1f4]
mov edx, 0x104
sub esi, eax
mov edi, edi
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x42ab60
movzx ecx, word [eax + esi]
test cx, cx
je 0x42ab60
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x42ab40
jmp 0x42ab64
test edx, edx
jne 0x42ab67
sub eax, 2
mov ebp, dword [esp + 0x48]
xor edx, edx
mov word [eax], dx
mov dword [esp + 0x34], 1
xor ebx, ebx
cmp ebp, ebx
je 0x42ab9e
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x4c]
push eax
mov eax, ebp
call fcn.004247f0
mov ecx, dword [esp + 0x4c]
add esp, 4
push ecx
call fcn.0044b6e3
add esp, 4
mov edx, dword [esp + 0x3c]
push edx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call fcn.0044b6e3
mov eax, dword [esp + 0x38]
add esp, 4
jmp 0x42abbf
xor eax, eax
mov ecx, dword [esp + 0x404]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x400
ret