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

Disassembly:
push 0xffffffffffffffff
push 0x49884e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40c
push ebx
push ebp
push esi
push edi
mov eax, 0x53
mov word [esp + 0x144], ax
mov ecx, 0x4f
mov word [esp + 0x146], cx
mov edx, 0x46
mov word [esp + 0x148], dx
mov eax, 0x54
mov word [esp + 0x14a], ax
mov ecx, 0x57
mov word [esp + 0x14c], cx
mov edx, 0x41
mov word [esp + 0x14e], dx
mov eax, 0x52
mov word [esp + 0x150], ax
mov ecx, 0x45
mov word [esp + 0x152], cx
mov edx, 0x5c
mov eax, edx
mov word [esp + 0x154], dx
mov word [esp + 0x156], ax
mov ecx, 0x4d
mov word [esp + 0x158], cx
mov edx, 0x69
mov word [esp + 0x15a], dx
mov ecx, 0x72
mov word [esp + 0x15e], cx
mov edx, 0x6f
mov ecx, edx
mov word [esp + 0x160], dx
mov word [esp + 0x164], cx
mov eax, 0x63
mov word [esp + 0x15c], ax
mov eax, 0x73
mov word [esp + 0x162], ax
mov edx, 0x66
mov word [esp + 0x166], dx
mov ecx, 0x5c
mov edx, ecx
mov word [esp + 0x16a], cx
mov eax, 0x74
mov word [esp + 0x168], ax
mov word [esp + 0x16c], dx
mov ecx, 0x69
mov word [esp + 0x170], cx
mov eax, 0x57
mov word [esp + 0x16e], ax
mov edx, 0x6e
mov word [esp + 0x172], dx
mov ecx, 0x6f
mov word [esp + 0x176], cx
mov eax, 0x64
mov word [esp + 0x174], ax
mov edx, 0x77
mov ecx, 0x5c
mov word [esp + 0x178], dx
mov edx, ecx
mov eax, 0x73
mov word [esp + 0x17a], ax
mov word [esp + 0x17c], cx
mov word [esp + 0x17e], dx
mov eax, 0x43
mov edx, 0x72
mov word [esp + 0x180], ax
mov ecx, 0x75
mov eax, edx
mov word [esp + 0x182], cx
mov ecx, 0x65
mov word [esp + 0x184], dx
mov word [esp + 0x186], ax
xor ebx, ebx
mov edx, 0x6e
mov eax, 0x74
mov word [esp + 0x188], cx
mov dword [esp + 0x14], ebx
mov word [esp + 0x18a], dx
mov word [esp + 0x18c], ax
mov ecx, 0x56
mov word [esp + 0x18e], cx
mov edx, 0x65
mov word [esp + 0x190], dx
mov ecx, 0x73
mov word [esp + 0x194], cx
mov eax, 0x72
mov word [esp + 0x192], ax
mov edx, 0x69
mov word [esp + 0x196], dx
mov ecx, 0x6e
mov word [esp + 0x19a], cx
mov eax, 0x6f
mov word [esp + 0x198], ax
mov edx, 0x5c
mov eax, edx
mov word [esp + 0x19c], dx
mov word [esp + 0x19e], ax
mov ecx, 0x41
mov word [esp + 0x1a0], cx
mov edx, 0x70
mov eax, edx
mov word [esp + 0x1a2], dx
mov word [esp + 0x1a4], ax
mov ecx, 0x20
mov word [esp + 0x1a6], cx
mov edx, 0x50
mov word [esp + 0x1a8], dx
mov ecx, 0x74
mov word [esp + 0x1ac], cx
mov eax, 0x61
mov word [esp + 0x1aa], ax
mov edx, 0x68
mov word [esp + 0x1ae], dx
mov ecx, 0x5c
mov edx, ecx
mov word [esp + 0x1b2], cx
mov word [esp + 0x1b4], dx
mov eax, 0x73
mov word [esp + 0x1b0], ax
mov eax, 0x33
mov word [esp + 0x1b6], ax
mov ecx, 0x36
mov word [esp + 0x1b8], cx
mov edx, 0x30
mov word [esp + 0x1ba], dx
mov eax, 0x63
mov word [esp + 0x1bc], ax
mov ecx, 0x68
mov word [esp + 0x1be], cx
mov edx, 0x72
mov word [esp + 0x1c0], dx
mov eax, 0x6f
mov word [esp + 0x1c2], ax
mov ecx, 0x6d
mov word [esp + 0x1c4], cx
mov edx, 0x65
mov ecx, edx
mov word [esp + 0x1c6], dx
mov eax, 0x2e
mov word [esp + 0x1c8], ax
mov eax, ecx
mov edx, 0x78
mov word [esp + 0x1ca], cx
mov word [esp + 0x1cc], dx
xor ecx, ecx
mov edx, 0x53
mov word [esp + 0x1ce], ax
mov word [esp + 0x1d0], cx
mov word [esp + 0xbc], dx
mov eax, 0x4f
mov ecx, 0x46
mov edx, 0x54
mov word [esp + 0xbe], ax
mov word [esp + 0xc0], cx
mov word [esp + 0xc2], dx
mov eax, 0x57
mov ecx, 0x41
mov edx, 0x52
mov word [esp + 0xc4], ax
mov word [esp + 0xc6], cx
mov word [esp + 0xc8], dx
mov eax, 0x45
mov word [esp + 0xca], ax
mov ecx, 0x5c
mov edx, ecx
mov word [esp + 0xcc], cx
mov word [esp + 0xce], dx
mov eax, 0x4d
mov word [esp + 0xd0], ax
mov ecx, 0x69
mov word [esp + 0xd2], cx
mov eax, 0x72
mov word [esp + 0xd6], ax
mov ecx, 0x6f
mov eax, ecx
mov word [esp + 0xd8], cx
mov word [esp + 0xdc], ax
mov edx, 0x63
mov word [esp + 0xd4], dx
mov edx, 0x73
mov word [esp + 0xda], dx
mov ecx, 0x66
mov word [esp + 0xde], cx
mov eax, 0x5c
mov ecx, eax
mov word [esp + 0xe2], ax
mov word [esp + 0xe4], cx
mov edx, 0x74
mov word [esp + 0xe0], dx
mov eax, 0x69
mov word [esp + 0xe8], ax
mov edx, 0x57
mov word [esp + 0xe6], dx
mov ecx, 0x6e
mov word [esp + 0xea], cx
mov eax, 0x6f
mov word [esp + 0xee], ax
mov edx, 0x64
mov word [esp + 0xec], dx
mov ecx, 0x77
mov word [esp + 0xf0], cx
mov eax, 0x5c
mov ecx, eax
mov word [esp + 0xf4], ax
mov word [esp + 0xf6], cx
mov edx, 0x73
mov word [esp + 0xf2], dx
mov edx, 0x43
mov word [esp + 0xf8], dx
mov eax, 0x75
mov word [esp + 0xfa], ax
mov ecx, 0x72
mov edx, ecx
mov word [esp + 0xfc], cx
mov word [esp + 0xfe], dx
mov eax, 0x65
mov word [esp + 0x100], ax
mov ecx, 0x6e
mov word [esp + 0x102], cx
mov edx, 0x74
mov eax, 0x56
mov word [esp + 0x104], dx
mov word [esp + 0x106], ax
mov ecx, 0x65
mov word [esp + 0x108], cx
mov edx, 0x72
mov eax, 0x73
mov ecx, 0x69
mov word [esp + 0x10a], dx
mov word [esp + 0x10c], ax
mov word [esp + 0x10e], cx
mov edx, 0x6f
mov eax, 0x6e
mov ecx, 0x5c
mov word [esp + 0x110], dx
mov word [esp + 0x112], ax
mov edx, ecx
mov eax, 0x41
mov word [esp + 0x114], cx
mov word [esp + 0x116], dx
mov word [esp + 0x118], ax
mov ecx, 0x70
mov edx, ecx
mov word [esp + 0x11a], cx
mov word [esp + 0x11c], dx
mov eax, 0x20
mov word [esp + 0x11e], ax
mov ecx, 0x50
mov word [esp + 0x120], cx
mov edx, 0x61
mov word [esp + 0x122], dx
mov eax, 0x74
mov word [esp + 0x124], ax
mov ecx, 0x68
mov word [esp + 0x126], cx
mov edx, 0x73
mov word [esp + 0x128], dx
mov eax, 0x5c
mov ecx, eax
mov word [esp + 0x12c], cx
mov word [esp + 0x12a], ax
mov edx, 0x33
mov word [esp + 0x12e], dx
mov ecx, 0x30
mov word [esp + 0x132], cx
mov edx, 0x73
mov word [esp + 0x134], dx
mov eax, 0x36
mov word [esp + 0x130], ax
mov eax, 0x65
mov word [esp + 0x136], ax
mov word [esp + 0x13c], ax
mov ecx, 0x36
mov word [esp + 0x138], cx
mov edx, 0x2e
mov word [esp + 0x13a], dx
mov edx, eax
xor eax, eax
mov word [esp + 0x140], dx
mov word [esp + 0x142], ax
mov ecx, 0x78
mov word [esp + 0x13e], cx
mov ecx, 0x53
mov word [esp + 0x34], cx
mov edx, 0x4f
mov word [esp + 0x36], dx
mov eax, 0x46
mov word [esp + 0x38], ax
mov ecx, 0x54
mov word [esp + 0x3a], cx
mov edx, 0x57
mov word [esp + 0x3c], dx
mov eax, 0x41
mov word [esp + 0x3e], ax
mov ecx, 0x52
mov word [esp + 0x40], cx
mov edx, 0x45
mov word [esp + 0x42], dx
mov eax, 0x5c
mov ecx, eax
mov word [esp + 0x44], ax
mov edx, 0x4d
mov word [esp + 0x46], cx
mov word [esp + 0x48], dx
mov eax, 0x69
mov word [esp + 0x4a], ax
mov ecx, 0x63
mov edx, 0x72
mov eax, 0x6f
mov word [esp + 0x4c], cx
mov word [esp + 0x4e], dx
mov edx, eax
mov ecx, 0x73
mov word [esp + 0x50], ax
mov eax, 0x66
mov word [esp + 0x52], cx
mov word [esp + 0x54], dx
mov edx, 0x5c
mov ecx, 0x74
mov word [esp + 0x56], ax
mov word [esp + 0x58], cx
mov word [esp + 0x5a], dx
mov eax, edx
mov word [esp + 0x5c], ax
mov edx, 0x69
mov word [esp + 0x60], dx
mov ecx, 0x57
mov word [esp + 0x5e], cx
mov eax, 0x6e
mov word [esp + 0x62], ax
mov edx, 0x6f
mov word [esp + 0x66], dx
mov ecx, 0x64
mov word [esp + 0x64], cx
mov eax, 0x77
mov word [esp + 0x68], ax
mov edx, 0x5c
mov eax, edx
mov word [esp + 0x6c], dx
mov word [esp + 0x6e], ax
mov ecx, 0x73
mov word [esp + 0x6a], cx
mov ecx, 0x43
mov word [esp + 0x70], cx
mov eax, 0x72
mov ecx, eax
mov word [esp + 0x74], ax
mov word [esp + 0x76], cx
mov edx, 0x75
mov word [esp + 0x72], dx
mov edx, 0x65
mov word [esp + 0x78], dx
mov eax, 0x6e
mov word [esp + 0x7a], ax
mov ecx, 0x74
mov word [esp + 0x7c], cx
mov edx, 0x56
mov word [esp + 0x7e], dx
mov eax, 0x65
mov word [esp + 0x80], ax
mov ecx, 0x72
mov word [esp + 0x82], cx
mov edx, 0x73
mov word [esp + 0x84], dx
mov eax, 0x69
mov word [esp + 0x86], ax
mov ecx, 0x6f
mov word [esp + 0x88], cx
mov eax, 0x5c
mov ecx, eax
mov word [esp + 0x8c], ax
mov edx, 0x6e
mov word [esp + 0x8a], dx
mov word [esp + 0x8e], cx
mov eax, 0x70
mov ecx, eax
mov edx, 0x41
mov word [esp + 0x90], dx
mov word [esp + 0x92], ax
mov word [esp + 0x94], cx
mov edx, 0x20
mov word [esp + 0x96], dx
mov eax, 0x50
mov ecx, 0x61
mov word [esp + 0x98], ax
mov word [esp + 0x9a], cx
mov edx, 0x74
mov word [esp + 0x9c], dx
mov eax, 0x68
mov ecx, 0x73
mov edx, 0x5c
mov word [esp + 0x9e], ax
mov word [esp + 0xa0], cx
mov eax, edx
mov ecx, 0x33
mov word [esp + 0xa2], dx
mov word [esp + 0xa4], ax
mov word [esp + 0xa6], cx
mov edx, 0x36
mov eax, 0x30
mov ecx, 0x73
mov word [esp + 0xa8], dx
mov word [esp + 0xaa], ax
mov word [esp + 0xac], cx
mov edx, 0x65
mov ecx, edx
mov eax, 0x2e
mov word [esp + 0xb0], ax
mov eax, ecx
mov word [esp + 0xae], dx
mov word [esp + 0xb2], cx
xor ecx, ecx
mov edx, 0x78
mov word [esp + 0xb4], dx
mov word [esp + 0xb6], ax
mov word [esp + 0xb8], cx
cmp dword [esp + 0x42c], ebx
je 0x42fac2
lea edx, [esp + 0x1d8]
push edx
call fcn.00407e10
mov dword [esp + 0x424], ebx
xor eax, eax
mov word [esp + 0x1c], ax
mov ebp, 7
lea eax, [esp + 0xbc]
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 0x42f7c3
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0xc0]
push ecx
lea esi, [esp + 0x20]
call fcn.00402bd0
mov byte [esp + 0x424], 1
mov edx, esi
push edx
lea eax, [esp + 0x1dc]
push eax
call fcn.0042b390
mov byte [esp + 0x424], 0
mov edi, 8
cmp dword [esp + 0x30], edi
jb 0x42f81c
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00471eaf
add esp, 4
xor edx, edx
xor eax, eax
mov word [esp + 0x1f4], ax
lea eax, [esp + 0x144]
mov word [esp + 0x1c], dx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x208], ebp
mov dword [esp + 0x204], ebx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x42f850
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x148]
push ecx
lea esi, [esp + 0x1f8]
call fcn.00402bd0
mov byte [esp + 0x424], 2
mov edx, esi
push edx
lea eax, [esp + 0x1dc]
push eax
call fcn.0042b390
mov byte [esp + 0x424], 0
cmp dword [esp + 0x208], edi
jb 0x42f8ad
mov ecx, dword [esp + 0x1f4]
push ecx
call fcn.00471eaf
add esp, 4
xor edx, edx
xor eax, eax
mov word [esp + 0x1c], ax
lea eax, [esp + 0x34]
mov word [esp + 0x1f4], dx
mov dword [esp + 0x208], ebp
mov dword [esp + 0x204], ebx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebx
lea edx, [eax + 2]
jmp 0x42f8e0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x42f8e0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x38]
push ecx
lea esi, [esp + 0x20]
call fcn.00402bd0
mov byte [esp + 0x424], 3
mov edx, esi
push edx
lea eax, [esp + 0x1dc]
push eax
call fcn.0042b390
mov byte [esp + 0x424], 0
cmp dword [esp + 0x30], edi
jb 0x42f931
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00471eaf
add esp, 4
mov ecx, dword [esp + 0x1e8]
mov edi, dword [esp + 0x1e4]
xor edx, edx
sub ecx, edi
mov word [esp + 0x1c], dx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov esi, edx
mov dword [esp + 0x30], ebp
shr esi, 0x1f
xor ebp, ebp
add esi, edx
mov dword [esp + 0x2c], ebx
je 0x42faa4
jmp 0x42f970
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x216]
push ecx
mov word [esp + 0x218], ax
call fcn.00476ef0
add esp, 0xc
mov dword [esp + 0x1d4], 0x208
cmp ebp, esi
jb 0x42f9ab
call fcn.004726ec
mov edi, dword [esp + 0x1e4]
cmp dword [edi + ebx + 0x18], 8
jb 0x42f9b8
mov edi, dword [edi + ebx + 4]
jmp 0x42f9bc
lea edi, [edi + ebx + 4]
lea edx, [esp + 0x10]
push edx
push 1
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42fa25
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x1d4]
push eax
lea ecx, [esp + 0x210]
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42fa0f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x42fa25
lea eax, [esp + 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42fa56
mov ecx, dword [esp + 0x1e8]
mov edi, dword [esp + 0x1e4]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
inc ebp
add esi, edx
add ebx, 0x1c
cmp ebp, esi
jb 0x42f970
jmp 0x42faa4
mov eax, dword [esp + 0x42c]
lea esi, [esp + 0x20c]
mov edx, 0x104
sub esi, eax
jmp 0x42fa70
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x42fa90
movzx ecx, word [eax + esi]
test cx, cx
je 0x42fa90
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x42fa70
jmp 0x42fa94
test edx, edx
jne 0x42fa97
sub eax, 2
xor edx, edx
mov word [eax], dx
mov dword [esp + 0x14], 1
mov dword [esp + 0x424], 0xffffffff
lea eax, [esp + 0x1d8]
push eax
call fcn.004287f0
mov eax, dword [esp + 0x14]
jmp 0x42fac4
xor eax, eax
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x418
ret