Function at 0x10001360
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x10059898]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5fb0d3], 0x42474ff
mov eax, dword [ebp + 8]
sete byte [0x1005a3c4]
mov dword [ebp - 0x60], eax
cmp dword [0x5fb0d3], 0xc24548d
mov dword [ebp - 0x68], 0
sete byte [0x1005a3c5]
mov eax, dword [0x6146f0]
cmp eax, 0x42474ff
sete byte [0x1005a3c6]
cmp dword [0x6146f0], 0xa053044
sete byte [0x1005a3c7]
cmp eax, 0x42474ff
jne 0x100013d8
cmp dword [0x51a3b8], 0x3d1446
je 0x100013d8
mov al, 1
jmp 0x100013da
xor al, al
mov byte [0x1005a3c8], al
lea eax, [ebp - 0x58]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftMicrosoft_GamesAge_of_Empires
push 0x80000001
mov dword [ebp - 0x5c], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000142a
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
push str.Aoe2Patch
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push esi
mov esi, dword [ebp - 0x54]
lea eax, [ebp - 0x61]
push edi
push esi
push 0x1004b3f0
push eax
call fcn.10001950
dec esi
add esp, 0xc
cmp esi, 3
ja case.0x10001448.3
jmp dword [esi*4 + 0x100016e4]
mov bl, 1
mov byte [ebp - 0x5c], 0
jmp 0x10001470
mov byte [ebp - 0x58], 1
mov bl, 1
mov byte [ebp - 0x5c], 0
jmp 0x10001474
xor bl, bl
mov byte [ebp - 0x5c], 1
jmp 0x10001470
xor bl, bl
mov byte [ebp - 0x5c], bl
mov byte [ebp - 0x58], 0
cmp byte [0x1005a3c6], 0
mov esi, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x58]
mov byte [ebp - 0x54], bl
je 0x100015a3
cmp byte [0x1005a3c8], 0
jne 0x100015ac
mov ecx, dword [str.on.ini]
mov edx, 0xf
mov ax, word [0x1004b3f8]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x4c]
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], 6
mov byte [ebp - 0x16], 0
call fcn.10038b40
mov ecx, dword [ebp - 8]
add esp, 8
test eax, eax
setne bh
cmp ecx, 0x10
jb 0x1000150d
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10001503
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100016da
push ecx
push edx
call fcn.1002f2ed
add esp, 8
test bh, bh
je 0x10001523
push dword [ebp - 0x60]
push edi
push dword [ebp - 0x54]
push 1
push esi
call fcn.10007860
add esp, 0x14
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 0x50]
push 0
push 1
push eax
push 0x50a448
mov byte [ebp - 0x50], 0xeb
call edi
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push eax
call esi
push 0
push 1
lea eax, [ebp - 0x50]
mov byte [ebp - 0x50], 0xeb
push eax
push 0x510cb7
call edi
push eax
call esi
push 0
push 1
lea eax, [ebp - 0x50]
mov byte [ebp - 0x50], 0xeb
push eax
push 0x510ace
call edi
push eax
call esi
push 0
push 1
lea eax, [ebp - 0x50]
mov byte [ebp - 0x50], 0xeb
push eax
push 0x4ff1e4
call edi
push eax
call esi
push 0
push 1
lea eax, [ebp - 0x50]
mov byte [ebp - 0x50], 0xeb
push eax
push 0x510295
call edi
push eax
call esi
mov esi, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x58]
cmp byte [0x1005a3c8], 0
je 0x10001604
mov ax, word [0x1004b404]
mov ecx, 0xf
movq xmm0, qword [str.dpamode.dll]
mov word [ebp - 0x14], ax
mov al, byte [0x1004b406]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x12], al
lea eax, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x1c], 0
push eax
mov dword [ebp - 0xc], 0xb
movq qword [ebp - 0x1c], xmm0
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x68], 1
call fcn.10038b40
add esp, 8
test eax, eax
je 0x10001604
mov bh, 1
jmp 0x10001606
xor bh, bh
test byte [ebp - 0x68], 1
je 0x10001640
mov ecx, dword [ebp - 8]
cmp ecx, 0x10
jb 0x10001640
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10001636
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100016df
push ecx
push edx
call fcn.1002f2ed
add esp, 8
test bh, bh
je 0x10001680
cmp dword [0x7c2e27], 0x32785f32
jne 0x10001663
mov ebx, dword [ebp - 0x60]
push ebx
push edi
push esi
push dword [ebp - 0x54]
call fcn.1000ac30
add esp, 0x10
jmp 0x10001683
test bl, bl
je 0x10001670
push edi
call fcn.100156e0
add esp, 4
mov ebx, dword [ebp - 0x60]
push 1
push ebx
call fcn.100140f0
add esp, 8
jmp 0x10001683
mov ebx, dword [ebp - 0x60]
cmp byte [0x1005a3c7], 0
je 0x1000169c
push ebx
push edi
push dword [ebp - 0x54]
push 1
push esi
call fcn.10017e30
add esp, 0x14
cmp byte [0x1005a3c5], 0
je 0x100016b5
push ebx
push edi
push dword [ebp - 0x54]
push 1
push esi
call fcn.100246c0
add esp, 0x14
cmp byte [0x1005a3c4], 0
je 0x100016c9
push 1
push esi
call fcn.10021a60
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002f2fb
mov esp, ebp
pop ebp
ret
call fcn.10032cfe
call fcn.10032cfe
dec edi
adc al, 0
adc byte [edi + 0x14], dl
add byte [eax], dl
imul edx, dword [eax + eax], 0x10
arpl word [eax + eax], dx
adc ah, cl
int3