Function at 0x402597
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 0x40279e
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.004057f0
mov esi, 0x104
push esi
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.004057f0
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 0x402698
cmp byte [ebp - 0x11c], bl
je 0x402698
lea eax, [ebp - 0x11c]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
push 0x2c
push dword [ebp - 8]
call fcn.00405910
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x402674
mov byte [edi], bl
push dword [ebp - 8]
call fcn.004060be
cmp edi, ebx
pop ecx
mov ecx, dword [ebp - 4]
mov dword [ebp + ecx*4 - 0x360], eax
je 0x402698
inc edi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x4f
mov dword [ebp - 8], edi
jl 0x402660
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 0x40c314
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 0x40277a
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 0x40277a
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 0x40273b
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + eax*4 - 0x360]
jne 0x40273b
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 0x4026a6
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
jmp 0x4027c0
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x4027be
lea eax, [ecx - 4]
cmp dword [eax], ebx
je 0x4027b4
mov eax, dword [ecx]
push 3
call dword [eax]
jmp 0x4027bb
push eax
call fcn.00405850
pop ecx
mov dword [esi + 4], ebx
xor eax, eax
pop esi
pop ebx
leave
ret 4