Function at 0x40a510
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4136bd
mov eax, dword fs:[0]
push eax
sub esp, 0xba0
mov eax, dword [0x41b044]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x250
lea eax, [ebp - 0xb48]
mov dword [ebp - 4], 1
push 0
push eax
mov byte [ebp - 0xb4c], 1
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xb48]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x40a775
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x410
lea eax, [ebp - 0x8b0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xb64], 0x208
lea eax, [ebp - 0xb58]
mov dword [ebp - 0xb68], 0
mov ecx, 0x20
lea edi, [ebp - 0x90]
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsAcrobat.exe
push eax
push 1
push 0
lea eax, [ebp - 0x90]
push eax
rep movsd dword es:[edi], dword [esi]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a62e
lea eax, [ebp - 0xb64]
push eax
lea eax, [ebp - 0x8b0]
push eax
lea eax, [ebp - 0xb68]
push eax
push 0
push 0
push dword [ebp - 0xb58]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0xb4c]
xor edx, edx
push dword [ebp - 0xb58]
test eax, eax
movzx ecx, cl
cmovne ecx, edx
mov dword [ebp - 0xb4c], ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp + 0x20], 0
jne 0x40a7d8
push 0x410
lea eax, [ebp - 0x4a0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0xb50]
mov dword [ebp - 0xb54], 0x20
push eax
lea eax, [ebp - 0x4a0]
mov dword [ebp - 0xb50], 0x22
push 0x208
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0x18
test eax, eax
jne 0x40a775
lea eax, [ebp - 0x8b0]
push eax
lea eax, [ebp - 0x4a0]
push 0x208
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
test eax, eax
jne 0x40a775
lea eax, [ebp - 0xb50]
push eax
lea eax, [ebp - 0x4a0]
push 0x208
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
test eax, eax
jne 0x40a775
lea eax, [ebp - 0xb54]
push eax
lea eax, [ebp - 0x4a0]
push 0x208
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
test eax, eax
jne 0x40a775
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x4a0]
push 0x208
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
test eax, eax
jne 0x40a775
push 0x44
push eax
lea eax, [ebp - 0xbac]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xbac], 0x44
lea eax, [ebp - 0x8d8]
xorps xmm0, xmm0
movups xmmword [ebp - 0x8d8], xmm0
push eax
lea eax, [ebp - 0xbac]
push eax
push 0
push 0
push 0x1000000
push 0
push 0
push 0
lea eax, [ebp - 0x4a0]
push eax
lea eax, [ebp - 0x8b0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40a7be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 0xb4c], 0
mov edx, dword [ebp + 0x1c]
mov byte [ebp - 4], 0x15
cmp edx, 8
jb 0x40ac4b
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ac41
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40ac41
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push dword [ebp - 0x8d8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x8d4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40a77c
xor eax, eax
mov dword [ebp - 0x8b8], 0
mov dword [ebp - 0x8b4], 7
mov word [ebp - 0x8c8], ax
lea eax, [ebp - 0x8c8]
mov byte [ebp - 4], 8
push eax
sub esp, 0x18
lea eax, [ebp + 0x24]
mov ecx, esp
mov dword [ebp - 0xb60], esp
push eax
call fcn.004096b0
sub esp, 0x18
mov byte [ebp - 4], 9
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.004096b0
mov byte [ebp - 4], 8
call fcn.0040c820
add esp, 0x34
test al, al
jne 0x40aa94
push 0x44
lea eax, [ebp - 0xbac]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xbac], 0x44
xorps xmm0, xmm0
lea ecx, [ebp - 0xb50]
movups xmmword [ebp - 0x8d8], xmm0
call fcn.00409530
lea eax, [ebp - 0x8d8]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0xbac]
push eax
push 0
push 0
push 0x1000000
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x8b0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40a946
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xb50]
or eax, 0xffffffff
mov byte [ebp - 4], 8
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40a8d8
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4153b8]
mov ecx, edi
call esi
mov edx, dword [ebp - 0x8b4]
mov byte [ebp - 4], 0xb
cmp edx, 8
jb 0x40a91e
mov ecx, dword [ebp - 0x8c8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a914
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a914
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004114a6
add esp, 8
xor eax, eax
mov dword [ebp - 0x8b8], 0
mov dword [ebp - 0x8b4], 7
mov word [ebp - 0x8c8], ax
mov byte [ebp - 0xb4c], al
jmp 0x40a77c
push dword [ebp - 0x8d8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x8d4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str._FileOpenUntitled__
lea ecx, [ebp - 0xb60]
call fcn.00409480
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xe
cmovae ecx, dword [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0xb5c]
push eax
call fcn.00409be0
push 0x416338
push eax
lea eax, [ebp - 0xb54]
mov byte [ebp - 4], 0xf
push eax
call fcn.00409be0
add esp, 0x18
push eax
lea ecx, [ebp - 0xb50]
mov byte [ebp - 4], 0x10
call fcn.00409af0
mov ecx, dword [ebp - 0xb54]
or edi, 0xffffffff
mov byte [ebp - 4], 0xf
add ecx, 0xfffffff0
mov eax, edi
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40a9e7
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4153b8]
mov ecx, edi
call esi
or edi, 0xffffffff
mov ecx, dword [ebp - 0xb5c]
mov eax, edi
mov byte [ebp - 4], 0xe
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40aa17
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4153b8]
mov ecx, edi
call esi
or edi, 0xffffffff
mov ecx, dword [ebp - 0xb60]
mov eax, edi
mov byte [ebp - 4], 0xa
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40aa47
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4153b8]
mov ecx, edi
call esi
or edi, 0xffffffff
mov esi, dword [ebp - 0xb50]
push esi
push str.Control
push str.AcroviewA20
call fcn.0040bf00
add esp, 0xc
mov byte [ebp - 0xb4c], al
mov byte [ebp - 4], 8
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x40abd9
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4153b8]
mov ecx, edi
call esi
jmp 0x40abd9
lea eax, [ebp - 0x8c8]
push eax
lea eax, [ebp - 0x8f8]
push 0x415d40
push eax
call fcn.00408690
push 0x415d40
push eax
lea eax, [ebp - 0x8e0]
mov byte [ebp - 4], 0x11
push eax
call fcn.00408620
add esp, 0x18
lea ecx, [ebp - 0x8c8]
push eax
call fcn.00409b70
mov edx, dword [ebp - 0x8cc]
mov byte [ebp - 4], 0x12
cmp edx, 8
jb 0x40ab11
mov ecx, dword [ebp - 0x8e0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ab07
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ab64
push edx
push ecx
call fcn.004114a6
add esp, 8
xor eax, eax
mov dword [ebp - 0x8d0], 0
mov dword [ebp - 0x8cc], 7
mov word [ebp - 0x8e0], ax
mov edx, dword [ebp - 0x8e4]
mov byte [ebp - 4], 0x13
cmp edx, 8
jb 0x40ab74
mov ecx, dword [ebp - 0x8f8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ab6a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40ab6a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004114a6
add esp, 8
xor eax, eax
mov dword [ebp - 0x8e8], 0
cmp dword [ebp - 0x8b4], 8
push 1
mov word [ebp - 0x8f8], ax
lea eax, [ebp - 0x8c8]
cmovae eax, dword [ebp - 0x8c8]
push 0
push eax
lea eax, [ebp - 0x8b0]
mov dword [ebp - 0x8e4], 7
push eax
push str.open
push 0
mov byte [ebp - 4], 8
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [ebp - 0xb4c]
movzx ecx, dl
xor edx, edx
cmp eax, 0x20
cmovle ecx, edx
mov byte [ebp - 0xb4c], cl
mov edx, dword [ebp - 0x8b4]
mov byte [ebp - 4], 0x14
cmp edx, 8
jb 0x40ac1f
mov ecx, dword [ebp - 0x8c8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ac15
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40ac15
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004114a6
add esp, 8
xor eax, eax
mov dword [ebp - 0x8b8], 0
mov dword [ebp - 0x8b4], 7
mov word [ebp - 0x8c8], ax
jmp 0x40a77c
push edx
push ecx
call fcn.004114a6
add esp, 8
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
mov edx, dword [ebp + 0x38]
mov dword [ebp - 4], 0x16
cmp edx, 8
jb 0x40aca2
mov ecx, dword [ebp + 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ac98
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40ac98
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004114a6
add esp, 8
mov edx, dword [ebp - 0xb4c]
mov al, dl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411460
mov esp, ebp
pop ebp
ret