Function at 0x409700
Capabilities:
Query environment variable
Query or enumerate registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c80e
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x42800c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
call fcn.004017c0
mov dword [ebp - 4], 0
mov ecx, ebx
mov eax, dword [ebx]
mov dword [ebp - 0x18], 1
call dword [eax + 0x44]
mov edi, dword [ebp + 0x10]
lea ecx, [ebx + 0x10]
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0x10]
call dword [eax + 0x44]
lea eax, [edi + 0x10]
push eax
lea ecx, [ebx + 0x10]
call fcn.00401ca0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x409796
cmp dword [ecx + 0x24], eax
mov eax, 0x421f10
je 0x409796
mov eax, dword [ecx + 0x1c]
lea ecx, [ebp - 0x10]
push ecx
push 0x20019
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409a9c
mov esi, dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x4097cf
cmp dword [esi + 0x24], eax
mov eax, 0x421f10
je 0x4097cf
mov eax, dword [esi + 0x1c]
lea ecx, [ebp + 0x10]
push ecx
push 0
lea ecx, [ebp + 0xc]
push ecx
push 0
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409a93
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4097fe
cmp eax, 2
jne 0x409a93
mov dword [ebp - 0x50], vtable.CVolCommonBaseWithMemManager.0
mov dword [ebp - 0x50], vtable.CVolObject.0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x50], vtable.CVolMem.0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 4], 2
mov dword [ebp - 0x34], vtable.CVolCommonBaseWithMemManager.0
mov dword [ebp - 0x34], vtable.CVolObject.0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 3
mov dword [ebp - 0x34], vtable.CVolMem.0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0x40
mov byte [ebp - 4], 4
mov ebx, dword [ebp + 0x10]
add ebx, 2
jne 0x4098a4
mov ebx, dword [ebp - 0x3c]
xor edi, edi
mov eax, dword [ebp - 0x44]
jmp 0x4098e8
mov edi, dword [ebp - 0x38]
mov eax, ebx
cdq
idiv edi
mov eax, dword [ebp - 0x50]
sub edi, edx
add edi, ebx
push edi
mov eax, dword [eax]
cmp eax, method.CWString.virtual_0
jne 0x4098d4
mov ecx, 0x428a38
call fcn.00412fe0
mov dword [ebp + 8], eax
test eax, eax
je 0x40999a
jmp 0x4098dc
lea ecx, [ebp - 0x50]
call eax
mov dword [ebp + 8], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3c], ebx
push ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esi + 0xc]
add esp, 0xc
test eax, eax
jne 0x409908
cmp dword [esi + 0x24], eax
mov eax, 0x421f10
je 0x409908
mov eax, dword [esi + 0x1c]
lea ecx, [ebp + 0x10]
push ecx
push edi
push 0
push 0
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4099e3
cmp dword [ebp - 0x3c], eax
mov esi, dword [ebp - 0x44]
cmove esi, eax
cmp dword [ebp + 0xc], 2
jne 0x4099d6
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
inc eax
mov dword [ebp + 8], eax
lea ebx, [eax*2 + 2]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x409961
push ebx
lea ecx, [ebp - 0x34]
call fcn.004125e0
mov edi, eax
mov eax, dword [ebp - 0x28]
jmp 0x4099b2
test ebx, ebx
jne 0x409969
xor edi, edi
jmp 0x4099b2
mov edi, dword [ebp - 0x1c]
mov eax, 0x40
test edi, edi
cmovle edi, eax
mov eax, ebx
cdq
idiv edi
mov eax, dword [ebp - 0x34]
sub edi, edx
add edi, ebx
push edi
mov eax, dword [eax]
cmp eax, method.CWString.virtual_0
jne 0x4099a2
mov ecx, 0x428a38
call fcn.00412fe0
test eax, eax
jne 0x4099a7
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
lea ecx, [ebp - 0x34]
call eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edi
mov edi, eax
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x20]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, dword [ebp - 0x28]
xor eax, eax
cmp dword [ebp - 0x20], eax
cmove esi, eax
mov ebx, dword [ebp - 0x14]
mov ecx, ebx
push esi
call fcn.00413990
jmp 0x4099e6
mov ebx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
mov dword [ebp - 0x34], vtable.CVolMem.0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x409a1b
mov eax, dword [ebp - 0x34]
push ecx
mov eax, dword [eax + 0xc]
cmp eax, method.CWString.virtual_12
jne 0x409a16
mov ecx, 0x428a38
call fcn.004130d0
jmp 0x409a1b
lea ecx, [ebp - 0x34]
call eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 2
mov dword [ebp - 0x34], vtable.CVolObject.0
mov byte [ebp - 4], 0
mov dword [ebp - 0x50], vtable.CVolMem.0
mov dword [ebp - 4], 6
mov edx, dword [ebp - 0x44]
test edx, edx
je 0x409a73
mov eax, dword [ebp - 0x50]
push edx
mov eax, dword [eax + 0xc]
cmp eax, method.CWString.virtual_12
jne 0x409a6e
mov ecx, 0x428a38
call fcn.004130d0
jmp 0x409a73
lea ecx, [ebp - 0x50]
call eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov byte [ebp - 4], 0
mov dword [ebp - 0x50], vtable.CVolObject.0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc