Function at 0x437351
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5656e2
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x5d6c64]
xor eax, ebp
mov dword [ebp - 0x28], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2bc], ecx
and dword [ebp - 0x25c], 0
and dword [ebp - 0x1c], 0
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], 8
jb 0x4373a3
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x2c0], eax
jmp 0x4373ac
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c0], eax
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
push dword [ebp - 0x2c0]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x437418
push 4
call fcn.0041b640
pop ecx
movzx eax, al
test eax, eax
je 0x4373f0
push dword [ebp - 0x24]
push str._ProcessStateMachine__GetWegamePathFromReg__cant_find_reg_info__code_lu
push 4
call fcn.0041b5a4
add esp, 0xc
push 0x571cb4
mov ecx, dword [ebp + 8]
call fcn.00404e60
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x25c]
or eax, 1
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp + 8]
jmp 0x437607
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x270], eax
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
push dword [ebp - 0x274]
push dword [ebp - 0x270]
lea ecx, [ebp - 0x18]
call fcn.0043ca64
mov dword [ebp - 4], 1
mov byte [ebp - 0x234], 0
push 0x207
push 0
lea eax, [ebp - 0x233]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [ebp - 0x10], 0x208
mov dword [ebp - 0x20], 1
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x14], 8
jb 0x437490
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x2c4], eax
jmp 0x437499
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x278], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp - 0x2c4]
push dword [ebp - 0x278]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x437525
push 4
call fcn.0041b640
pop ecx
movzx eax, al
test eax, eax
je 0x4374ef
push dword [ebp - 0x24]
push str._ProcessStateMachine__GetWegamePathFromReg__registry_invalid._err___d_
push 4
call fcn.0041b5a4
add esp, 0xc
push 0x571d04
mov ecx, dword [ebp + 8]
call fcn.00404e60
mov eax, dword [ebp - 0x25c]
or eax, 1
mov dword [ebp - 0x25c], eax
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 0
je 0x43751d
mov ecx, dword [ebp - 0x14]
call fcn.00410e72
mov eax, dword [ebp + 8]
jmp 0x437607
cmp dword [ebp - 0x10], 0
jne 0x43757e
push 4
call fcn.0041b640
pop ecx
movzx eax, al
test eax, eax
je 0x437548
push str._ProcessStateMachine__GetWegamePathFromReg__invalid_size
push 4
call fcn.0041b5a4
pop ecx
pop ecx
push 0x571d8c
mov ecx, dword [ebp + 8]
call fcn.00404e60
mov eax, dword [ebp - 0x25c]
or eax, 1
mov dword [ebp - 0x25c], eax
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 0
je 0x437576
mov ecx, dword [ebp - 0x14]
call fcn.00410e72
mov eax, dword [ebp + 8]
jmp 0x437607
lea eax, [ebp - 0x234]
mov dword [ebp - 0x258], eax
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x254], eax
xor eax, eax
mov ecx, dword [ebp - 0x254]
mov edx, dword [ebp - 0x258]
mov word [edx + ecx*2 + 2], ax
push dword [ebp - 0x258]
lea ecx, [ebp - 0x250]
call fcn.00404e60
mov byte [ebp - 4], 2
lea eax, [ebp - 0x250]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406f40
mov eax, dword [ebp - 0x25c]
or eax, 1
mov dword [ebp - 0x25c], eax
mov byte [ebp - 4], 3
push 0
push 1
lea ecx, [ebp - 0x250]
call fcn.00406660
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 0
je 0x437604
mov ecx, dword [ebp - 0x14]
call fcn.00410e72
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.004610a0
leave
ret 0x10