Function at 0x4026e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
push ebx
push esi
mov esi, ecx
lea eax, [esi + 0x314]
push eax
push str.softwareEPSONSTM3Driver_
lea eax, [ebp - 0x66c]
push str._s_sMenu
push eax
mov dword [ebp - 0x10], esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
push 0x20019
xor ebx, ebx
push ebx
lea eax, [ebp - 0x66c]
push eax
push 0x80000002
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4028eb
push edi
push ebx
push ebx
push 0x800
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_AppendMenuA]
push 0x140
lea eax, [ebp - 0x360]
push ebx
push eax
call fcn.00405830
mov esi, 0x104
push esi
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.00405830
add esp, 0x18
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x11c]
push eax
push ebx
push ebx
push str.Separators
push dword [ebp - 0xc]
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4027e5
cmp byte [ebp - 0x11c], bl
je 0x4027e5
lea eax, [ebp - 0x11c]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
push 0x2c
push dword [ebp - 8]
call fcn.00405950
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x4027c1
mov byte [edi], bl
push dword [ebp - 8]
call fcn.004060ff
cmp edi, ebx
pop ecx
mov ecx, dword [ebp - 4]
mov dword [ebp + ecx*4 - 0x360], eax
je 0x4027e5
inc edi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x4f
mov dword [ebp - 8], edi
jl 0x4027ad
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ebx
mov edi, 0x398
mov dword [ebp - 4], ebx
push edi
lea eax, [ebp - 0x464]
push 0x40c354
push eax
mov dword [ebp - 0x14], esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x568]
push eax
push ebx
push ebx
lea eax, [ebp - 0x464]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp byte [ebp - 0x568], bl
je 0x4028c7
push esi
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x10]
push edi
push dword [eax + 0xbb0]
call dword [sym.imp.USER32.dll_LoadStringA]
cmp byte [ebp - 0x220], bl
je 0x4028c7
mov eax, dword [ebp - 0x10]
mov esi, dword [eax + 4]
add esi, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
inc dword [ebp - 8]
cmp eax, 0x4f
jge 0x402888
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + eax*4 - 0x360]
jne 0x402888
push ebx
push ebx
push 0x800
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_AppendMenuA]
inc dword [ebp - 0x18]
movzx eax, di
push eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0xbb0]
call dword [sym.imp.USER32.dll_LoadBitmapA]
mov dword [esi + 8], eax
lea eax, [ebp - 0x220]
mov dword [esi + 4], edi
push eax
add esi, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
push edi
push 0x100
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_AppendMenuA]
mov esi, 0x104
add dword [ebp - 4], 0x110
inc edi
cmp dword [ebp - 4], 0x53f0
jl 0x4027f3
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
jmp 0x40290d
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x40290b
lea eax, [ecx - 4]
cmp dword [eax], ebx
je 0x402901
mov eax, dword [ecx]
push 3
call dword [eax]
jmp 0x402908
push eax
call fcn.00405890
pop ecx
mov dword [esi + 4], ebx
xor eax, eax
pop esi
pop ebx
leave
ret 4