Function at 0x441880
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479bdb
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x49c128]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push eax
push 0x201
push 0
push ebx
push ecx
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
je 0x44196b
push str.GetRegKeyValue
mov edx, 4
lea ecx, [ebp - 0xc8]
call fcn.00404b20
add esp, 4
mov esi, eax
mov dword [ebp - 4], 0
mov al, byte [esi + 0x48]
test al, al
je 0x441942
mov edx, str.RegOpenKeyEx
mov ecx, esi
call fcn.00416af0
mov al, byte [esi + 0x48]
test al, al
je 0x441942
mov edx, ebx
mov ecx, esi
call fcn.00416e30
mov al, byte [esi + 0x48]
test al, al
je 0x441942
mov edx, str._failed
mov ecx, esi
call fcn.00416af0
cmp byte [esi + 0x48], 0
je 0x441942
push edi
mov ecx, esi
call fcn.00435b20
lea ecx, [ebp - 0x68]
call fcn.004048b0
lea eax, [ebp - 0x68]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - 0x68], vtable.std::ios_base.0
call fcn.00452e26
add esp, 4
xor al, al
jmp 0x441a0a
mov edi, dword [esi + 4]
mov edx, edi
mov ecx, dword [esi]
sub edx, ecx
cmp edx, 0x7fff
jbe 0x441984
lea edi, [ecx + 0x7fff]
jmp 0x4419bc
jae 0x4419bf
mov eax, dword [esi + 8]
sub eax, ecx
cmp eax, 0x7fff
jae 0x4419a4
push ecx
push 0x7fff
mov ecx, esi
call fcn.00441d30
mov edi, dword [esi + 4]
jmp 0x4419bf
mov ecx, 0x7fff
mov eax, edi
sub ecx, edx
push ecx
push 0
push eax
lea edi, [eax + ecx]
call fcn.004572c0
add esp, 0xc
mov dword [esi + 4], edi
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push eax
push 0
sub edi, eax
push 0
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x1c]
push edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x441a4f
mov ebx, dword [esi + 4]
mov ecx, ebx
mov edx, dword [esi]
sub ecx, edx
mov edi, dword [ebp - 0x14]
cmp edi, ecx
jae 0x441a26
lea eax, [edx + edi]
mov dword [esi + 4], eax
mov edi, dword [ebp - 0x1c]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004553e7
mov esp, ebp
pop ebp
ret
jbe 0x4419f9
mov eax, dword [esi + 8]
sub eax, edx
cmp edi, eax
jbe 0x441a3c
push ecx
push edi
mov ecx, esi
call fcn.00441d30
jmp 0x4419f9
sub edi, ecx
push edi
push 0
push ebx
call fcn.004572c0
add esp, 0xc
lea eax, [edi + ebx]
jmp 0x4419f6
push str.GetRegKeyValue
mov edx, 4
lea ecx, [ebp - 0x170]
call fcn.00404b20
add esp, 4
mov esi, eax
mov dword [ebp - 4], 2
mov al, byte [esi + 0x48]
test al, al
je 0x441ab9
mov edx, str.RegQueryValueEx
mov ecx, esi
call fcn.00416af0
mov al, byte [esi + 0x48]
test al, al
je 0x441ab9
mov edx, edi
mov ecx, esi
call fcn.00416e30
mov al, byte [esi + 0x48]
test al, al
je 0x441ab9
mov edx, str._failed
mov ecx, esi
call fcn.00416af0
cmp byte [esi + 0x48], 0
mov edi, dword [ebp - 0x1c]
je 0x441abc
push edi
mov ecx, esi
call fcn.00435b20
jmp 0x441abc
mov edi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x110]
call fcn.004048b0
lea eax, [ebp - 0x110]
mov dword [ebp - 4], 3
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00452e26
add esp, 4
jmp 0x4419fc