Function at 0x408c20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x414f74
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x750
mov eax, dword [0x41c260]
mov dword [esp + 0x748], eax
xor eax, eax
push ebx
xor ebx, ebx
push esi
push edi
mov byte [esp + 0x340], bl
mov ecx, 0x3f
lea edi, [esp + 0x341]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x440], bl
mov ecx, 0x40
lea edi, [esp + 0x441]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x650], bl
mov ecx, 0x3f
lea edi, [esp + 0x651]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x138], bl
mov ecx, 0x3f
lea edi, [esp + 0x139]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x238], bl
mov ecx, 0x40
lea edi, [esp + 0x239]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x548], bl
mov ecx, 0x40
lea edi, [esp + 0x549]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [esp + 0x54c]
push eax
push ecx
mov byte [esp + 0x24], bl
mov word [esp + 0x25], bx
mov byte [esp + 0x2c], bl
mov word [esp + 0x2d], bx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x409196
mov esi, dword [sym.imp.MSVCR71.dll__splitpath]
push ebx
lea edx, [esp + 0x13c]
push edx
lea eax, [esp + 0x658]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x558]
push edx
call esi
push ebx
push ebx
lea eax, [esp + 0x66c]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x25c]
push edx
call dword [sym.imp.MSVCR71.dll__makepath]
lea eax, [esp + 0x260]
add esp, 0x28
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x408d70
sub eax, edx
mov al, byte [esp + eax + 0x237]
cmp al, 0x5c
je 0x408da1
cmp al, 0x2f
je 0x408da1
lea edi, [esp + 0x238]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x408d90
mov ax, word [0x417394]
mov word [edi], ax
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x408dbf
cmp byte [eax], bl
je 0x408dbf
lea edx, [esp + 0x138]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x408db5
xor eax, eax
mov byte [esp + 0x30], bl
mov ecx, 0x41
lea edi, [esp + 0x31]
rep stosd dword es:[edi], eax
push str.SOFTWARECanopusEDIUS5.00AppResource
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], 0x104
call dword [0x416138]
lea ecx, [esp + 0x24]
push ecx
push 0x20019
push ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0x770], ebx
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408e42
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x34]
push eax
push ebx
push ebx
push str.Folder
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408e37
mov byte [esp + 0x30], bl
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x30]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x408e50
mov cl, byte [esp + 0x30]
sub eax, edx
cmp cl, bl
je 0x408f94
cmp eax, ebx
je 0x408f67
mov al, byte [esp + eax + 0x2f]
cmp al, 0x5c
je 0x408e91
cmp al, 0x2f
je 0x408e91
lea edi, [esp + 0x30]
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x408e80
mov ax, word [0x417394]
mov word [edi], ax
push ebx
push ebx
lea ecx, [esp + 0x348]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x40]
push eax
call esi
add esp, 0x14
lea ecx, [esp + 0x138]
push ecx
lea ecx, [esp + 0x14]
call dword [0x416138]
mov esi, dword [ebp + 0xc]
push esi
push eax
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x770], 1
call fcn.00408a40
add esp, 0xc
mov edi, eax
lea eax, [esp + 0x340]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x768], 2
call dword [0x416138]
push esi
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x770], 3
call fcn.00408a40
add esp, 0xc
push str..DLL
mov ecx, edi
mov esi, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x450]
push eax
call dword [sym.imp.MSVCR71.dll__makepath]
add esp, 0x14
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
mov byte [esp + 0x764], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp byte [esp + 0x30], bl
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
je 0x408f9a
lea ecx, [esp + 0x440]
push ecx
call edi
mov esi, eax
cmp esi, ebx
je 0x408f9a
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, esi
jmp 0x409198
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea edx, [esp + 0x238]
push edx
lea ecx, [esp + 0x20]
call dword [0x416138]
lea ecx, [esp + 0x138]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x770], 4
call fcn.00408a40
mov ecx, dword [ebp + 0xc]
push ecx
push eax
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x77c], 5
call fcn.00408a40
push str..DLL
push eax
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x788], 6
call fcn.00408a40
add esp, 0x24
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call edi
lea ecx, [esp + 0x10]
mov esi, eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x764], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp esi, ebx
jne 0x409188
cmp byte [esp + 0x30], bl
je 0x409111
push ebx
push ebx
lea ecx, [esp + 0x348]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.MSVCR71.dll__splitpath]
add esp, 0x14
lea ecx, [esp + 0x138]
push ecx
lea ecx, [esp + 0x20]
call dword [0x416138]
push 0x417380
push eax
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x770], 7
call fcn.00408a40
add esp, 0xc
mov esi, eax
lea eax, [esp + 0x340]
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x768], 8
call dword [0x416138]
push str..DLL
mov ecx, esi
mov dword [esp + 0x14], eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov ecx, dword [esp + 0x14]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x450]
push edx
call dword [sym.imp.MSVCR71.dll__makepath]
add esp, 0x14
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x764], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea eax, [esp + 0x440]
push eax
call edi
mov esi, eax
cmp esi, ebx
jne 0x409188
lea ecx, [esp + 0x238]
push ecx
lea ecx, [esp + 0x18]
call dword [0x416138]
lea edx, [esp + 0x138]
push edx
push eax
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x770], 9
call fcn.00408a40
push str.RES.DLL
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x77c], 0xa
call fcn.00408a40
add esp, 0x18
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call edi
lea ecx, [esp + 0x10]
mov esi, eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, esi
jmp 0x409198
xor eax, eax
mov ecx, dword [esp + 0x75c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x754]
call fcn.004140fd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc