Function at 0x401541
Capabilities:
Enumerate files on windows
Query or enumerate registry value
Set registry value

Disassembly:
jmp 0x40af30
sub esp, 0x87c
mov eax, dword [0x4b37f8]
xor eax, esp
mov dword [esp + 0x878], eax
push esi
push 0x104
lea eax, [esp + 0x678]
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40b655
lea eax, [esp + 0x674]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40af70
sub eax, edx
sar eax, 1
cmp eax, 4
jbe 0x40b655
push esi
lea ecx, [esp + 0xc]
push ecx
push esi
push 0x2001f
push esi
push esi
push esi
push str.SoftwareAdobePDF_Admin_Settings
push SysFreeString
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40b655
push 0x24c
lea edx, [esp + 0x1c]
push esi
push edx
mov dword [esp + 0x20], esi
call fcn.00442c50
lea eax, [esp + 0x680]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40afd4
sub eax, edx
sar eax, 1
mov ecx, 0x497614
lea edx, [esp + eax*2 + 0x66c]
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
cmp ax, si
jne 0x40aff1
push ebx
push ebp
push edi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x684]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x40b59b
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
nop
lea edx, [esp + 0x4c]
push 0x2e
push edx
call fcn.004449d6
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x40b09d
push str..ilk
push ebp
call fcn.00444d27
add esp, 8
test eax, eax
je 0x40b576
push str..map
push ebp
call fcn.00444d27
add esp, 8
test eax, eax
je 0x40b576
push str..manifest
push ebp
call fcn.00444d27
add esp, 8
test eax, eax
je 0x40b576
push str..pdb
push ebp
call fcn.00444d27
add esp, 8
test eax, eax
je 0x40b576
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40b576
push str..EXE
push ebp
mov dword [esp + 0x18], 0
call fcn.00444d27
add esp, 8
test eax, eax
jne 0x40b0e4
mov eax, str..ENU
mov edx, ebp
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40b0d5
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
add ebp, 2
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40b652
push 0x208
lea eax, [esp + 0x274]
push eax
push 0xc8
push esi
call edi
lea eax, [esp + 0x270]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b130
sub eax, edx
sar eax, 1
lea ecx, [eax + eax]
mov eax, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x274]
push edx
push 1
push 0
push str.Standard
push eax
call ebx
push 0x208
lea ecx, [esp + 0x274]
push ecx
push 0xc9
push esi
call edi
lea eax, [esp + 0x270]
lea ecx, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40b180
sub eax, ecx
mov ecx, dword [esp + 0x10]
sar eax, 1
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x274]
push eax
push 1
push 0
push 0x497578
push ecx
call ebx
push 0x208
lea edx, [esp + 0x274]
push edx
push 0xca
push esi
call edi
lea eax, [esp + 0x270]
lea ecx, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40b1d0
mov edx, dword [esp + 0x10]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
lea ecx, [esp + 0x274]
push ecx
push 1
push 0
push str.High_Quality_Print
push edx
call ebx
push 0x208
lea eax, [esp + 0x274]
push eax
push 0xcb
push esi
call edi
lea eax, [esp + 0x270]
lea ecx, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40b220
sub eax, ecx
sar eax, 1
lea ecx, [eax + eax]
mov eax, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x274]
push edx
push 1
push 0
push str.Press_Quality
push eax
call ebx
push 0x208
lea ecx, [esp + 0x274]
push ecx
push 0xcc
push esi
call edi
lea eax, [esp + 0x270]
lea ecx, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40b270
sub eax, ecx
mov ecx, dword [esp + 0x10]
sar eax, 1
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x274]
push eax
push 1
push 0
push str.PDFX1a_2001
push ecx
call ebx
push 0x208
lea edx, [esp + 0x274]
push edx
push 0xd1
push esi
call edi
lea eax, [esp + 0x270]
lea ecx, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40b2c0
mov edx, dword [esp + 0x10]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
lea ecx, [esp + 0x274]
push ecx
push 1
push 0
push str.PDFX1a_2001_JPN
push edx
call ebx
push 0x208
lea eax, [esp + 0x274]
push eax
push 0xce
push esi
call edi
lea eax, [esp + 0x270]
lea ecx, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40b310
sub eax, ecx
sar eax, 1
lea ecx, [eax + eax]
mov eax, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x274]
push edx
push 1
push 0
push str.PDFX1a_2003
push eax
call ebx
push 0x208
lea ecx, [esp + 0x274]
push ecx
push 0xd0
push esi
call edi
lea eax, [esp + 0x270]
lea ecx, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40b360
sub eax, ecx
mov ecx, dword [esp + 0x10]
sar eax, 1
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x274]
push eax
push 1
push 0
push str.PDFX1a_2003_JPN
push ecx
call ebx
push 0x208
lea edx, [esp + 0x274]
push edx
push 0xcd
push esi
call edi
lea eax, [esp + 0x270]
lea ecx, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40b3b0
mov edx, dword [esp + 0x10]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
lea ecx, [esp + 0x274]
push ecx
push 1
push 0
push str.PDFX3_2002
push edx
call ebx
push 0x208
lea eax, [esp + 0x274]
push eax
push 0xd2
push esi
call edi
lea eax, [esp + 0x270]
lea ecx, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40b400
sub eax, ecx
sar eax, 1
lea ecx, [eax + eax]
mov eax, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x274]
push edx
push 1
push 0
push str.PDFX3_2002_JPN
push eax
call ebx
push 0x208
lea ecx, [esp + 0x274]
push ecx
push 0xcf
push esi
call edi
lea eax, [esp + 0x270]
lea ecx, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40b450
sub eax, ecx
mov ecx, dword [esp + 0x10]
sar eax, 1
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x274]
push eax
push 1
push 0
push str.PDFX3_2003
push ecx
call ebx
push 0x208
lea edx, [esp + 0x274]
push edx
push 0xd3
push esi
call edi
lea eax, [esp + 0x270]
lea ecx, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40b4a0
mov edx, dword [esp + 0x10]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
lea ecx, [esp + 0x274]
push ecx
push 1
push 0
push str.PDFX3_2003_JPN
push edx
call ebx
push 0x208
lea eax, [esp + 0x274]
push eax
push 0xd4
push esi
call edi
lea eax, [esp + 0x270]
lea ecx, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40b4f0
sub eax, ecx
sar eax, 1
lea ecx, [eax + eax]
mov eax, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x274]
push edx
push 1
push 0
push str.PDFA1b_2005_CMYK
push eax
call ebx
push 0x208
lea ecx, [esp + 0x274]
push ecx
push 0xd5
push esi
call edi
lea eax, [esp + 0x270]
lea ecx, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40b540
sub eax, ecx
mov ecx, dword [esp + 0x10]
sar eax, 1
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x274]
push eax
push 1
push 0
push str.PDFA1b_2005_RGB
push ecx
call ebx
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40b030
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push 0
push 0x497370
push SysFreeString
call esi
test eax, eax
jne 0x40b652
lea edx, [esp + 0x14]
push edx
push 0x2001f
push eax
push str.SoftwareAdobePDF_Admin_Settings
push SysFreeString
call esi
test eax, eax
jne 0x40b63e
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x274]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push str.JobOptionsFolder
push eax
mov dword [esp + 0x30], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b63e
lea eax, [esp + 0x270]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b616
sub eax, edx
sar eax, 1
lea ecx, [eax + eax]
mov eax, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x274]
push edx
push 1
push 0
push 0
push eax
call ebx
mov ecx, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x87c]
pop esi
xor ecx, esp
call fcn.00442c3a
add esp, 0x87c
ret