Function at 0x40ae80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2c30
call fcn.0042d850
mov eax, dword [0x445824]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push 0x7fe
xor ebx, ebx
lea ecx, [ebp - 0x1412]
xor eax, eax
push ebx
push ecx
mov dword [ebp - 0x2c18], esi
mov word [ebp - 0x1414], ax
call fcn.00422ed0
lea edx, [ebp - 0x1414]
push edx
mov ecx, 0x43f174
call fcn.004065e0
add esp, 0x10
lea eax, [ebp - 0x1414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x40af07
push 0x43f1b0
push 0x43ea88
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fa5e
mov esp, ebp
pop ebp
ret
push 0x208
lea ecx, [ebp - 0xa0c]
push ebx
push ecx
mov dword [ebp - 0x2c20], ebx
call fcn.00422ed0
add esp, 0xc
lea edx, [ebp - 0x2c20]
push edx
push str.SYSTEMCurrentControlSetControlVersionForcorResourcesTimeZone
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x2c28], 0x104
mov dword [ebp - 0x2c30], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea eax, [ebp - 0x2c28]
push eax
mov eax, dword [ebp - 0x2c20]
lea ecx, [ebp - 0xa0c]
push ecx
lea edx, [ebp - 0x2c30]
push edx
push ebx
push 0x43f174
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40af92
push 0x43f41c
push 0x43ea88
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x40b275
push 0x3ff
lea ecx, [ebp - 0x803]
push ebx
push ecx
mov byte [ebp - 0x804], bl
call fcn.00422ed0
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
lea edx, [ebp - 0xa0c]
push edx
push ebx
push ebx
call esi
push ebx
push ebx
push eax
lea eax, [ebp - 0x804]
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0xa0c]
push ecx
push ebx
push ebx
call esi
lea eax, [ebp - 0x804]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40afe4
sub eax, edx
lea edx, [ebp - 0x804]
push edx
mov edx, eax
call fcn.00406910
push 0x7fe
lea ecx, [ebp - 0x2412]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x2414], ax
call fcn.00422ed0
lea eax, [ebp - 0x804]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40b022
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
sub eax, edx
push ebx
inc eax
push eax
lea edx, [ebp - 0x804]
push edx
push ebx
push ebx
call edi
lea ecx, [ebp - 0x804]
lea esi, [ecx + 1]
lea ebx, [ebx]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x40b050
push eax
sub ecx, esi
lea eax, [ebp - 0x2414]
push eax
inc ecx
push ecx
lea ecx, [ebp - 0x804]
push ecx
push ebx
push ebx
call edi
lea esi, [ebp - 0x2414]
call fcn.00406520
test eax, eax
je 0x40b25a
push 0x7fe
lea eax, [ebp - 0x2c12]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x2c14], dx
call fcn.00422ed0
lea ecx, [ebp - 0x2c14]
push ecx
mov ecx, str.aotugowork
call fcn.004065e0
add esp, 0x10
lea edx, [ebp - 0x2c14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x40b0d7
mov eax, dword [ebp - 0x2c18]
push str.X__W
push 0x43ea88
push eax
jmp 0x40b26b
push 0x208
lea ecx, [ebp - 0xc14]
push ebx
push ecx
mov dword [ebp - 0x2c1c], ebx
call fcn.00422ed0
add esp, 0xc
lea edx, [ebp - 0x2c1c]
push edx
push str.SYSTEMCurrentControlSetControlVersionForcorResourcesTimeZone
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x2c24], 0x104
mov dword [ebp - 0x2c2c], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea eax, [ebp - 0x2c24]
push eax
mov eax, dword [ebp - 0x2c1c]
lea ecx, [ebp - 0xc14]
push ecx
lea edx, [ebp - 0x2c2c]
push edx
push ebx
push str.aotugowork
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40b15f
mov ecx, dword [ebp - 0x2c18]
push 0x43f41c
push 0x43ea88
push ecx
jmp 0x40b242
push 0x3ff
lea edx, [ebp - 0x403]
push ebx
push edx
mov byte [ebp - 0x404], bl
call fcn.00422ed0
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
lea eax, [ebp - 0xc14]
push eax
push ebx
push ebx
call esi
push ebx
push ebx
push eax
lea ecx, [ebp - 0x404]
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0xc14]
push edx
push ebx
push ebx
call esi
lea eax, [ebp - 0x404]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40b1b1
sub eax, edx
lea ecx, [ebp - 0x404]
push ecx
mov edx, eax
call fcn.00406910
push 0x7fe
lea eax, [ebp - 0x1c12]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x1c14], dx
call fcn.00422ed0
lea eax, [ebp - 0x404]
add esp, 0x10
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40b1f0
push ebx
push ebx
sub eax, edx
inc eax
push eax
lea ecx, [ebp - 0x404]
push ecx
push ebx
push ebx
call edi
lea ecx, [ebp - 0x404]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x40b211
push eax
sub ecx, esi
lea edx, [ebp - 0x1c14]
push edx
inc ecx
push ecx
lea eax, [ebp - 0x404]
push eax
push ebx
push ebx
call edi
mov edx, dword [ebp - 0x2c18]
lea ecx, [ebp - 0x1c14]
push ecx
push 0x43ea88
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp - 0x2c1c]
add esp, 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40b274
mov ecx, dword [ebp - 0x2c18]
push str.1YHe
push 0x43ea88
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
pop edi
mov edx, dword [ebp - 0x2c20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041fa5e
mov esp, ebp
pop ebp
ret