Function at 0x4fa6c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x623a06
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push ebx
mov ebx, dword [esp + 0x230]
push ebp
push esi
test ebx, ebx
push edi
mov esi, ecx
jne 0x4fa709
push 0x84c
call fcn.0061317d
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x234], ebx
jmp 0x4fabf1
mov eax, dword [0x6833d0]
mov ecx, dword [eax + 0x20]
call fcn.005d6980
cmp eax, 0xffffffff
jne 0x4fa789
cmp ebx, 1
je 0x4fa72f
cmp ebx, 2
je 0x4fa72f
cmp ebx, 5
je 0x4fa72f
cmp ebx, 7
jne 0x4fa789
push 0xff
mov ecx, esi
call fcn.004fa6c0
mov ecx, dword [0x6833d0]
call fcn.004209d0
push 0x82c
call fcn.0061317d
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
test edi, edi
mov dword [esp + 0x234], 1
je 0x4faa9a
push ebx
push 1
push 0x240f
mov ecx, esi
call fcn.004a8890
push eax
push esi
mov ecx, edi
call fcn.00451b10
jmp 0x4faa9a
xor ecx, ecx
mov cl, byte [esi + 0xa34]
cmp ecx, ebx
je 0x4faa9a
mov ecx, dword [esi + 0x904]
push 0
mov edx, dword [ecx]
call dword [edx + 0x14]
mov ecx, dword [esi + 0x9b4]
push 0
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esi + 0x9b4]
push 0x18b
push 0x162
push 0x44
mov edx, dword [ecx]
push 0x1b5
call dword [edx + 0x1c]
mov ecx, dword [esi + 0x8fc]
push 0
mov eax, dword [ecx]
call dword [eax + 0x14]
lea ebp, [esi + 0x858]
mov ebx, 0x14
mov edi, ebp
mov ecx, dword [edi]
push 0
mov edx, dword [ecx]
call dword [edx + 0x14]
add edi, 4
dec ebx
jne 0x4fa7e9
push 0
mov ecx, esi
call fcn.004f7b00
push 0
mov ecx, esi
call fcn.004f7ab0
push 0
mov ecx, esi
call fcn.004f7e00
mov ecx, dword [esi + 0x8d8]
push 0
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esi + 0x8f0]
push 0
mov edx, dword [ecx]
call dword [edx + 0x14]
mov ecx, dword [esi + 0x9f8]
push 0
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esi + 0x9c8]
push 0
mov edx, dword [ecx]
call dword [edx + 0x14]
mov ecx, dword [esi + 0x8e0]
push 0
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esi + 0x8e4]
push 0
mov edx, dword [ecx]
call dword [edx + 0x14]
mov eax, dword [ebp]
push 0
push eax
mov ecx, esi
call fcn.004fd150
lea edi, [esi + 0x860]
mov ebp, 5
mov ecx, dword [edi]
push 0
push ecx
mov ecx, esi
call fcn.004fd150
add edi, 4
dec ebp
jne 0x4fa879
mov edi, dword [esp + 0x23c]
mov ebx, 0xff
cmp edi, ebx
je 0x4fa8dd
mov edx, dword [0x6833d0]
mov ecx, dword [edx + 0x20]
call fcn.005d6980
cmp eax, 0xffffffff
je 0x4fa8dd
mov eax, dword [esi + 0x8fc]
mov ecx, dword [0x6833d0]
push 0
mov ebp, dword [eax]
call fcn.0041df80
mov ecx, dword [esi + 0x8fc]
push eax
call dword [ebp + pe_nt_image_headers32]
mov ecx, dword [esi + 0x8fc]
push 1
mov edx, dword [ecx]
call dword [edx + 0x14]
mov ecx, dword [esi + 0x814]
push 0
call fcn.005bb3e0
mov ecx, dword [esi + 0x818]
push 0
call fcn.005bb3e0
mov ecx, dword [esi + 0x820]
push 0
call fcn.005bb3e0
mov ecx, dword [esi + 0x81c]
push 0
call fcn.005bb3e0
mov ecx, dword [esi + 0x810]
push 0
call fcn.005bb3e0
mov ecx, dword [esi + 0x828]
push 0
call fcn.005bb3e0
mov ecx, dword [esi + 0x824]
push 0
call fcn.005bb3e0
mov ecx, dword [esi + 0x82c]
push 0
call fcn.005bb3e0
mov ecx, dword [esi + 0x830]
push 0
call fcn.005bb3e0
mov ecx, esi
call fcn.004acbf0
mov eax, dword [esi + 0x814]
push 0x23
push 0x7918
push eax
mov ecx, esi
call fcn.004acc20
mov ecx, dword [esi + 0x818]
push 0x23
push 0x7919
push ecx
mov ecx, esi
call fcn.004acc20
mov edx, dword [esi + 0x820]
push 0x23
push 0x791d
push edx
mov ecx, esi
call fcn.004acc20
mov eax, dword [esi + 0x81c]
push 0x23
push 0x791c
push eax
mov ecx, esi
call fcn.004acc20
mov ecx, dword [esi + 0x810]
push 0x23
push 0x7920
push ecx
mov ecx, esi
call fcn.004acc20
mov edx, dword [esi + 0x828]
push 0x23
push 0x7921
push edx
mov ecx, esi
call fcn.004acc20
mov eax, dword [esi + 0x824]
push 0x23
push 0x791b
push eax
mov ecx, esi
call fcn.004acc20
mov ecx, dword [esi + 0x82c]
push 0x23
push 0x791e
push ecx
mov ecx, esi
call fcn.004acc20
mov edx, dword [esi + 0x830]
push 0x23
push 0x791a
push edx
mov ecx, esi
call fcn.004acc20
cmp byte [esi + 0xa34], 2
jne 0x4faa32
cmp edi, 2
je 0x4faa32
mov ecx, esi
mov byte [esi + 0xa35], 0
call fcn.004f7710
cmp edi, 8
ja case.default.0x4faa37
jmp dword [edi*4 + 0x4faf9c]
mov ecx, dword [0x6833d0]
mov eax, dword [ecx + 0x9e8]
test eax, eax
jne 0x4faa6c
push 0
call fcn.004201f0
test eax, eax
je 0x4faaf7
mov eax, dword [0x6833d0]
mov dword [eax + 0x9e8], 1
mov ecx, dword [esi + 0x814]
push 1
call fcn.005bb3e0
mov ecx, esi
call fcn.004f9cc0
mov byte [esi + 0xa34], 1
mov ecx, dword [0x6833d0]
mov byte [ecx + 4], 1
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x20]
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x228
ret 4
mov ecx, dword [esi + 0x818]
push 1
call fcn.005bb3e0
mov ecx, esi
call fcn.004fa1a0
mov byte [esi + 0xa34], 2
mov edx, dword [0x6833d0]
mov byte [edx + 4], 2
jmp case.default.0x4faa37
mov ecx, dword [0x6833d0]
mov eax, dword [ecx + 0x9e8]
test eax, eax
jne 0x4fab1f
push 0
call fcn.004201f0
test eax, eax
jne 0x4fab10
push 1
push 0x64
push 0x1c2
push 0
push 0x7d8
mov ecx, esi
call fcn.004ac3d0
jmp 0x4faa9a
mov eax, dword [0x6833d0]
mov dword [eax + 0x9e8], 1
mov ecx, dword [esi + 0x81c]
push 1
call fcn.005bb3e0
mov ecx, esi
call fcn.004fa520
mov al, 3
mov byte [esi + 0xa34], al
mov ecx, dword [0x6833d0]
mov byte [ecx + 4], al
jmp case.default.0x4faa37
mov byte [esi + 0xa34], bl
mov edx, dword [0x6833d0]
push 1
mov byte [edx + 4], bl
mov ecx, dword [esi + 0x820]
call fcn.005bb3e0
mov ecx, dword [0x6833d0]
call fcn.00424940
push 0x820
call fcn.0061317d
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x234], 2
je 0x4fab97
mov ecx, eax
call fcn.004f4630
push 0
push str.History_Screen
mov ecx, 0x68d8e0
mov dword [esp + 0x23c], 0xffffffff
call fcn.004a5ed0
push str.Main_Menu
mov ecx, 0x68d8e0
call fcn.004a60c0
jmp 0x4faa9a
mov byte [esi + 0xa34], bl
mov eax, dword [0x6833d0]
push 0x84c
mov byte [eax + 4], bl
call fcn.0061317d
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x234], 3
test eax, eax
je 0x4faa9a
push esi
mov ecx, eax
call fcn.0044b040
jmp 0x4faa9a
mov ecx, esi
call fcn.004f8ad0
mov ecx, dword [0x6833d0]
call fcn.00420720
mov byte [esi + 0xa34], 6
jmp case.default.0x4faa37
mov ecx, dword [esi + 0x82c]
push 1
call fcn.005bb3e0
mov byte [esi + 0xa34], 7
mov ecx, dword [0x6833d0]
mov byte [ecx + 4], 7
mov ecx, esi
call fcn.004f9520
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 0x20]
jmp case.default.0x4faa37
mov ecx, dword [esi + 0x830]
push 1
call fcn.005bb3e0
mov ecx, esi
call fcn.004f97d0
mov byte [esi + 0xa34], 8
mov eax, dword [0x6833d0]
mov byte [eax + 4], 8
jmp case.default.0x4faa37
mov byte [esi + 0xa34], bl
mov ecx, dword [0x6833d0]
mov byte [ecx + 4], bl
mov edx, dword [0x6833d0]
lea ecx, [esp + 0x28]
mov eax, dword [edx + 0x28]
add eax, 0xe49
push eax
push str._smediac1s1_beg.mm
push ecx
call fcn.00613634
push pe_nt_image_headers32
lea edx, [esp + 0x38]
push 0
push edx
call fcn.00614875
mov ebp, eax
add esp, 0x18
cmp ebp, 0xffffffff
jne 0x4fae0c
mov eax, dword [0x6833d0]
push str.CDPath
push 0
mov ecx, dword [eax + 0x1dc]
call fcn.004c50b0
test eax, eax
je 0x4fad16
push eax
lea ecx, [esp + 0x2c]
push str._sgamecampaignmediac1s1_beg.mm
push ecx
call fcn.00613634
push pe_nt_image_headers32
lea edx, [esp + 0x38]
push 0
push edx
call fcn.00614875
mov ebp, eax
add esp, 0x18
cmp ebp, 0xffffffff
jne 0x4fae0c
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 1
push 0
push 0
push 0
push str.SoftwareMicrosoftMicrosoft_GamesAge_of_Empires2.0
push reloc.DPLAYX.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4fadf0
mov byte [esp + 0x12c], al
lea edx, [esp + 0x20]
lea eax, [esp + 0x12c]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push str.CDPath
push edx
mov dword [esp + 0x28], 1
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4fade0
lea eax, [esp + 0x12c]
lea ecx, [esp + 0x28]
push eax
push str._sgamecampaignmediac1s1_beg.mm
push ecx
call fcn.00613634
push pe_nt_image_headers32
lea edx, [esp + 0x38]
push 0
push edx
call fcn.00614875
mov ebp, eax
add esp, 0x18
cmp ebp, 0xffffffff
je 0x4fade0
mov eax, dword [0x6833d0]
lea edi, [esp + 0x12c]
or ecx, 0xffffffff
mov edx, dword [eax + 0x1dc]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x130]
push ecx
push str.CDPathAge2
push eax
mov ecx, edx
call fcn.004c5050
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebp, 0xffffffff
jne 0x4fae0c
push 1
push 0x64
push 0x1c2
push 0
push 0x253f
mov ecx, esi
call fcn.004ac3d0
jmp case.default.0x4faa37
push ebp
call fcn.006145cc
mov ecx, dword [esi + 0x824]
add esp, 4
push 1
call fcn.005bb3e0
mov ecx, dword [0x6833d0]
or ebx, 0xffffffff
mov dword [esp + 0x10], ebx
call fcn.00424550
mov eax, dword [0x6833d0]
lea edx, [esp + 0x24]
xor edi, edi
push edx
mov ecx, dword [eax + 0x20]
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], edi
call fcn.0046b390
mov ebp, eax
cmp ebp, edi
jle case.default.0x4faa37
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], edi
mov eax, dword [edx]
mov edi, str.cam8
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [edi]
jne 0x4fae8e
test cl, cl
je 0x4fae8a
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [edi + 1]
jne 0x4fae8e
add eax, 2
add edi, 2
test cl, cl
jne 0x4fae6a
xor eax, eax
jmp 0x4fae93
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4faead
mov eax, dword [esp + 0x14]
add edx, 4
inc eax
cmp eax, ebp
mov dword [esp + 0x14], eax
jl 0x4fae63
mov ebx, dword [esp + 0x10]
jmp 0x4faeb1
mov ebx, dword [esp + 0x14]
xor edi, edi
test ebp, ebp
jle 0x4faecc
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + edi*4]
push edx
call fcn.00613327
add esp, 4
inc edi
cmp edi, ebp
jl 0x4faeb7
mov eax, dword [esp + 0x18]
push eax
call fcn.00613327
add esp, 4
cmp ebx, 0xffffffff
je case.default.0x4faa37
mov ecx, esi
call fcn.004f8ad0
mov ecx, dword [0x6833d0]
push 0
call fcn.004245d0
mov ecx, dword [0x6833d0]
push ebx
mov ecx, dword [ecx + 0x20]
call fcn.0046b2c0
mov edx, dword [0x6833d0]
push 8
mov ecx, dword [edx + 0x20]
call fcn.0046b4c0
mov ecx, dword [0x6833d0]
push 8
call fcn.005ca040
mov ecx, dword [0x6833d0]
push 1
call fcn.005ca020
mov ecx, dword [0x6833d0]
call fcn.00424940
push 0xa2c
call fcn.0061317d
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x234], 4
je 0x4faf6c
push 1
push 0
push 0
push 0x6819d0
mov ecx, eax
call fcn.004f2e80
push 0
push str.Game_Mission_Dialog
mov ecx, 0x68d8e0
mov dword [esp + 0x23c], 0xffffffff
call fcn.004a5ed0
push str.Main_Menu
mov ecx, 0x68d8e0
call fcn.004a60c0
jmp 0x4faa9a