Function at 0x414d1e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46a64d
mov eax, dword fs:[0]
push eax
sub esp, 0x470
mov eax, dword [0x48c7d0]
xor eax, esp
mov dword [esp + 0x468], eax
push ebx
push esi
push edi
mov eax, dword [0x48c7d0]
xor eax, esp
push eax
lea eax, [esp + 0x480]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
and dword [esp + 0x2c], 0
mov esi, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], esi
call fcn.0042a8d7
push eax
lea ecx, [esp + 0x18]
call fcn.00402773
and dword [esp + 0x488], 0
push esi
lea ecx, [esp + 0x48]
call fcn.00401ad0
lea eax, [esp + 0x44]
push eax
lea ebx, [esp + 0x30]
mov byte [esp + 0x48c], 1
call fcn.0041e3a0
mov eax, dword [0x491054]
mov dword [esp + 0x28], eax
mov eax, dword [0x49103c]
lea edi, [esp + 0x24]
mov esi, ebx
mov dword [esp + 0x24], eax
call fcn.0041e6f4
test al, al
jne 0x414de0
mov eax, dword [esp + 0x30]
add eax, 0xc
lea ecx, [esp + 0x44]
call fcn.00413cb9
test al, al
jne 0x414de0
mov eax, ebx
jmp 0x414df6
mov eax, dword [0x491054]
mov dword [esp + 0x28], eax
mov eax, dword [0x49103c]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
xor ebx, ebx
push ebx
mov dword [esp + 0x40], ecx
push 1
lea ecx, [esp + 0x4c]
mov dword [esp + 0x48], eax
mov byte [esp + 0x490], bl
call fcn.00402206
mov eax, dword [0x491054]
mov dword [esp + 0x28], eax
mov eax, dword [0x49103c]
lea edi, [esp + 0x24]
lea esi, [esp + 0x3c]
mov dword [esp + 0x24], eax
call fcn.0041e6f4
push dword [esp + 0x20]
test al, al
jne 0x414e83
lea ecx, [esp + 0x48]
call fcn.00401ad0
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x48c], 2
call fcn.0041d74f
cmp dword [eax + 0x18], 0x10
jb 0x414e65
mov eax, dword [eax + 4]
jmp 0x414e68
add eax, 4
mov ecx, dword [esp + 0x18]
push eax
call fcn.00406a1b
push ebx
push 1
lea ecx, [esp + 0x4c]
call fcn.00402206
jmp 0x414fec
lea ecx, [esp + 0x20]
call fcn.00406a1b
lea edi, [esp + 0x1c]
mov byte [esp + 0x488], 3
call fcn.0040731b
push eax
mov ecx, edi
call fcn.0040270e
push 0x478448
push dword [esp + 0x20]
call fcn.0044e8dd
pop ecx
pop ecx
test eax, eax
je 0x414fd2
lea eax, [esp + 0x34]
push eax
push 0x20019
push ebx
push 0x47a2e4
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x414fd2
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x270]
push eax
lea eax, [esp + 0x68]
push eax
push ebx
push 0x47a31c
push dword [esp + 0x48]
mov esi, 0x208
mov dword [esp + 0x50], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x414fc8
push 0xffffffffffffffff
push str.Corees2idconverter.dll
lea eax, [esp + 0x274]
push esi
push eax
call fcn.00450dbf
add esp, 0x10
lea eax, [esp + 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.ES2GetModelIDWithTwainID
push eax
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
mov edi, eax
lea eax, [esp + 0x68]
push ebx
push eax
call fcn.0044de40
add esp, 0xc
cmp edi, ebx
je 0x414fbe
push esi
lea eax, [esp + 0x68]
push eax
push dword [esp + 0x28]
call edi
add esp, 0xc
cmp eax, ebx
jne 0x414fbe
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x18]
call fcn.00402f6c
push dword [esp + 0x20]
lea ecx, [esp + 0x48]
call fcn.00401ad0
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x48c], 4
call fcn.0041d74f
lea ecx, [esp + 0x64]
push ecx
mov ecx, eax
call fcn.00401af5
push ebx
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x490], 3
call fcn.00402206
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
call fcn.0040283c
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.0040285d
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040285d
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x480]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x468]
xor ecx, esp
call fcn.0044d1dc
mov esp, ebp
pop ebp
ret