Function at 0x402c30
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xe88
mov eax, dword [0x667d00]
xor eax, esp
mov dword [esp + 0xe84], eax
push esi
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x4c]
push edi
push 0x6568d4
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0xf
mov byte [esp + 0x54], 0
call fcn.00403400
push 0x6568d4
lea ecx, [esp + 0x3c]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0xf
mov byte [esp + 0x3c], 0
call fcn.00403400
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.SYSTEMControlSet001ControlCrashControl
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402e79
mov edi, dword [esp + 8]
test edi, edi
jne 0x402cd8
push 0xd6
push str.d:opflpdfprotectjkprotect_selfprotecttoolslib_registry.cpp
push str.m_hKey
call fcn.005bbe0b
add esp, 0xc
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0xc8
push eax
lea eax, [esp + 0x494]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push str.MinidumpDir
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402d15
lea eax, [esp + 0x490]
push eax
lea ecx, [esp + 0x3c]
call fcn.00403400
test edi, edi
je 0x402d20
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x400
lea eax, [esp + 0x94]
push 0
push eax
call fcn.005a26c0
add esp, 0xc
lea ecx, [esp + 0x90]
cmp dword [esp + 0x4c], 0x10
lea eax, [esp + 0x38]
cmovae eax, dword [esp + 0x38]
push dword [esp + 0x48]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea edx, [esp + 0x90]
lea ecx, [esp + 0x78]
call fcn.004026b0
mov edi, eax
lea eax, [esp + 0x50]
cmp eax, edi
je 0x402dc9
mov edx, dword [esp + 0x64]
cmp edx, 0x10
jb 0x402da8
mov ecx, dword [esp + 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402d9e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402f1e
push edx
push ecx
call fcn.0059ce4e
add esp, 8
movq xmm1, qword [edi + 0x10]
movups xmm0, xmmword [edi]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
movq qword [esp + 0x10], xmm1
mov byte [edi], 0
jmp 0x402dda
movq xmm0, qword [esp + 0x60]
movq qword [esp + 0x10], xmm0
movaps xmm0, xmmword [esp + 0x50]
mov edx, dword [esp + 0x8c]
movaps xmmword [esp + 0x20], xmm0
cmp edx, 0x10
jb 0x402e18
mov ecx, dword [esp + 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402e0e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402f1e
push edx
push ecx
call fcn.0059ce4e
add esp, 8
movaps xmm0, xmmword [esp + 0x20]
xor eax, eax
mov edx, dword [esp + 0x4c]
movups xmmword [esi], xmm0
movq xmm0, qword [esp + 0x10]
movq qword [esi + 0x10], xmm0
cmp edx, 0x10
jb 0x402e63
mov ecx, dword [esp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402e59
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402f19
push edx
push ecx
call fcn.0059ce4e
add esp, 8
mov ecx, dword [esp + 0xe8c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0059d38a
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], 0
mov ecx, esi
mov dword [esi + 0x14], 0xf
push 0
mov byte [esi], 0
call fcn.00403400
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x4c]
cmp edx, 0x10
jb 0x402ed0
mov ecx, dword [esp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402ec6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402f19
push edx
push ecx
call fcn.0059ce4e
add esp, 8
mov edx, dword [esp + 0x64]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0xf
mov byte [esp + 0x38], 0
cmp edx, 0x10
jb 0x402e63
mov ecx, dword [esp + 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402e59
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402e59
call fcn.005a5c79
call fcn.005a5c79
int3