Function at 0x403830
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447c28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x590
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call fcn.00404100
cmp eax, 0xa
mov eax, dword [ebp + 8]
je 0x403dad
xor esi, esi
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x24], esi
call fcn.00402470
push 0x2c
push 0x5c
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.004036d0
mov ecx, dword [ebp - 0x14]
push str.CopyFilesICM
push ecx
push str.SystemCurrentControlSetControlPrintPrinters
lea edx, [ebp - 0x59c]
push 0x44b66c
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0x14
lea eax, [ebp - 0x28]
push eax
push 0x20019
push esi
lea ecx, [ebp - 0x59c]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
cmp eax, esi
je 0x403bfc
lea edx, [ebp - 0x18]
push edx
push 0x20019
push esi
push str.SystemCurrentControlSetControlPrintPrinters
xor eax, eax
mov ecx, 0x145
lea edi, [ebp - 0x59c]
push reloc.OLEAUT32.dll_SysReAllocString
rep stosd dword es:[edi], eax
call ebx
cmp eax, esi
jne 0x403950
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x24]
push eax
push 0x20019
push esi
push ecx
push edx
call ebx
cmp eax, esi
jne 0x403943
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x28]
push eax
push 0x20019
push esi
push str.CopyFilesICM
push ecx
call ebx
cmp eax, esi
je 0x403bfc
mov edx, dword [ebp - 0x24]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call edi
mov eax, dword [ebp - 0x18]
push eax
call edi
mov dword [ebp - 0x24], esi
jmp 0x40394d
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], esi
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 0xc], esi
jle 0x403ca1
push 0x2c
push ecx
call fcn.0042f4d1
mov ecx, dword [ebp - 0x14]
add esp, 8
cmp eax, esi
je 0x403ca1
sub eax, ecx
mov dword [ebp - 0x20], eax
js 0x403ca1
call fcn.0043cb83
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004022c0
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx - 0xc]
cmp eax, 2
jg 0x4039af
or eax, 0xffffffff
jmp 0x4039c9
lea eax, [ecx + 2]
push 0x5c
push eax
call fcn.0042f4d1
add esp, 8
cmp eax, esi
jne 0x4039c6
or eax, 0xffffffff
jmp 0x4039c9
sub eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00403670
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00401e30
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403a04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 2
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401cf0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00401e30
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403a40
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401e30
mov ecx, dword [ebp - 0x14]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push ecx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionPrintProvidersLanMan_Print_ServicesServers
lea edx, [ebp - 0x59c]
push str._s_sPrinters
push edx
call edi
mov eax, dword [ebp + 8]
add esp, 0x10
push eax
lea ecx, [ebp - 0x14]
call fcn.004022c0
mov ecx, dword [ebp - 0x14]
push 0x5c
push ecx
call fcn.0042dfa2
add esp, 8
cmp eax, esi
jne 0x403a8f
or eax, 0xffffffff
jmp 0x403a92
sub eax, dword [ebp - 0x14]
push eax
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x14]
call fcn.00401cf0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00401e30
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403acd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
push str.CopyFilesICM
push eax
lea ecx, [ebp - 0x59c]
push ecx
mov edx, ecx
push 0x44b6e8
push edx
call edi
add esp, 0x14
lea eax, [ebp - 0x28]
push eax
push 0x20019
push esi
lea ecx, [ebp - 0x59c]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
cmp eax, esi
je 0x403bdb
mov edx, dword [ebp - 0x1c]
push edx
xor eax, eax
mov ecx, 0x145
lea edi, [ebp - 0x59c]
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionPrintProvidersLanMan_Print_ServicesServers
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x59c]
push str._s_s_Printers
push eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
push esi
lea edx, [ebp - 0x59c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x403bac
push 0x44b63c
lea ecx, [ebp - 0x14]
call fcn.00403790
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x24]
push eax
push 0x20019
push esi
push ecx
push edx
call ebx
test eax, eax
jne 0x403bcf
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x28]
push eax
push 0x20019
push esi
push str.CopyFilesICM
push ecx
call ebx
cmp eax, esi
je 0x403bdb
mov edx, dword [ebp - 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [ebp - 0x18]
push eax
call esi
lea ecx, [ebp - 0x1c]
call fcn.00401400
lea ecx, [ebp - 0x14]
call fcn.00401400
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403bac
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403bfc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
push eax
push esi
lea ecx, [ebp - 0x30]
push ecx
push esi
push str.Files
mov dword [ebp - 0x2c], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edx
mov dword [ebp - 0x30], 7
call esi
test eax, eax
jne 0x403d52
mov eax, dword [ebp - 0x2c]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x20], ebx
je 0x403d52
mov ecx, dword [ebp - 0x2c]
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
push eax
push ebx
lea ecx, [ebp - 0x30]
push ecx
push 0
push str.Files
push edx
call esi
test eax, eax
je 0x403ca9
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x403c8e
push eax
call esi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x403bb4
push eax
call esi
jmp 0x403bb4
lea eax, [ecx - 0x10]
jmp 0x403d78
mov ecx, dword [ebp - 0x28]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x403cbf
push eax
call esi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x403cc9
push eax
call esi
mov edx, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x1c], edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x403d2d
lea ebx, [ebx]
mov eax, ebx
mov edx, ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403ce4
mov edi, dword [ebp - 0x1c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403cf1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
call esi
mov ecx, dword [ebp - 0x1c]
lea edx, [ecx + eax + 1]
push ebx
mov dword [ebp - 0x1c], edx
call esi
lea ebx, [ebx + eax + 1]
push ebx
call esi
test eax, eax
jne 0x403ce0
mov ebx, dword [ebp - 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [ebp - 0x14]
call fcn.00401400
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x403d68
push eax
call esi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x403d72
push eax
call esi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403bbc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x88], 0x58
mov dword [ebp - 0x84], 0x300
mov dword [ebp - 0x80], 1
mov dword [ebp - 0x7c], eax
je 0x403ea6
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x403ea6
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x20]
push ecx
push ebx
lea edx, [ebp - 0x88]
push edx
push ebx
call sub.mscms.dll_EnumColorProfilesA
cmp dword [ebp - 0x1c], ebx
jbe 0x403ea3
mov eax, dword [ebp - 0x20]
inc eax
push eax
mov dword [ebp - 4], 5
call fcn.0043cc83
add esp, 4
lea ecx, [ebp - 0x1c]
push ecx
mov esi, eax
lea edx, [ebp - 0x20]
push edx
push esi
lea eax, [ebp - 0x88]
push eax
push ebx
mov dword [ebp - 0x30], esi
call sub.mscms.dll_EnumColorProfilesA
cmp eax, 1
mov dword [ebp - 0x2c], eax
jne 0x403e71
push 0x44b62a
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esi], 0
je 0x403e6e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call ebx
push esi
lea edi, [edi + eax + 1]
call ebx
lea esi, [esi + eax + 1]
jmp 0x403e51
mov esi, dword [ebp - 0x30]
push esi
call fcn.0043cc88
mov eax, dword [ebp - 0x2c]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x2c], ebx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret