Function at 0x420d45
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56474a
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x5c9030]
xor eax, esp
mov dword [esp + 0x450], eax
push ebx
push esi
push edi
mov eax, dword [0x5c9030]
xor eax, esp
push eax
lea eax, [esp + 0x468]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
and dword [esp + 0x28], 0
mov dword [esp + 0x1c], eax
mov edi, ecx
call fcn.00437a9e
push eax
lea ecx, [esp + 0x1c]
call fcn.00402723
and dword [esp + 0x470], 0
push edi
lea ecx, [esp + 0x34]
call fcn.004019a2
lea eax, [esp + 0x30]
push eax
lea ebx, [esp + 0x14]
mov byte [esp + 0x474], 1
call fcn.0042a1cf
mov eax, dword [esp + 0x10]
cmp eax, dword [0x5d1a74]
je 0x420dea
add eax, 0xc
lea ecx, [esp + 0x30]
call fcn.00404c4e
test eax, eax
js 0x420dea
mov eax, ebx
jmp 0x420df7
mov eax, dword [0x5d1a74]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
mov esi, dword [eax]
xor ebx, ebx
push ebx
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x478], bl
call fcn.00401afd
push edi
cmp esi, dword [0x5d1a74]
je 0x420e64
lea ecx, [esp + 0x34]
call fcn.004019a2
lea ecx, [esp + 0x30]
mov byte [esp + 0x470], 2
call fcn.00429e7b
cmp dword [eax + 0x14], 0x10
jb 0x420e39
mov eax, dword [eax]
mov ecx, dword [esp + 0x1c]
push eax
call fcn.0040eb20
push ebx
push 1
lea ecx, [esp + 0x38]
call fcn.00401afd
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.0040274b
mov eax, dword [esp + 0x1c]
jmp 0x420fee
lea ecx, [esp + 0x18]
call fcn.0040eb20
lea ecx, [esp + 0x14]
mov byte [esp + 0x470], 3
call fcn.0040fc2f
push eax
lea ecx, [esp + 0x18]
call fcn.0040248f
push 0x59aab4
push dword [esp + 0x18]
call fcn.0053bb86
pop ecx
pop ecx
test eax, eax
je 0x420fc2
lea eax, [esp + 0x24]
push eax
push 0x20019
push ebx
push 0x59d0bc
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x420fc2
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x258]
push eax
lea eax, [esp + 0x34]
push eax
push ebx
push 0x59d0f4
push dword [esp + 0x38]
mov esi, 0x208
mov dword [esp + 0x40], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x420fb8
push 0xffffffffffffffff
push str.Corees2idconverter.dll
lea eax, [esp + 0x25c]
push esi
push eax
call fcn.0053c4cb
add esp, 0x10
lea eax, [esp + 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.ES2GetModelIDWithTwainID
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x50]
push ebx
push eax
call fcn.00538530
add esp, 0xc
cmp dword [esp + 0x10], ebx
je 0x420fae
push esi
lea eax, [esp + 0x50]
push eax
push edi
call dword [esp + 0x1c]
add esp, 0xc
cmp eax, ebx
jne 0x420fae
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x1c]
call fcn.004026b9
push edi
lea ecx, [esp + 0x34]
call fcn.004019a2
lea ecx, [esp + 0x30]
mov byte [esp + 0x470], 4
call fcn.00429e7b
mov esi, eax
lea eax, [esp + 0x4c]
push eax
call fcn.00537b40
pop ecx
push eax
lea eax, [esp + 0x50]
push eax
mov ecx, esi
call fcn.00401c18
push ebx
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x478], 3
call fcn.00401afd
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x18]
add esi, 0xfffffff0
push esi
call fcn.00402431
mov edi, dword [esp + 0x20]
pop ecx
mov ecx, dword [esp + 0x14]
add eax, 0x10
add ecx, 0xfffffff0
mov dword [edi], eax
call fcn.0040274b
mov ecx, esi
call fcn.0040274b
mov eax, edi
mov ecx, dword [esp + 0x468]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x450]
xor ecx, esp
call fcn.0053792d
mov esp, ebp
pop ebp
ret