Function at 0x415700
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6162f6
push eax
mov dword fs:[0], esp
sub esp, 0x260
lea eax, [esp + 0x10]
push ebx
push esi
push edi
push eax
xor ebx, ebx
push 0x20019
push ebx
push str.SYSTEMCurrentControlSet_serviceskltdi
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x415960
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x64]
push ecx
push edx
push ebx
push ebx
push str.ImagePath
push eax
mov dword [esp + 0x38], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x415960
mov ecx, dword [0x6cd768]
mov dword [esp + 0xc], ecx
push 2
lea edx, [esp + 0x69]
push 0x6a2bd4
push edx
mov dword [esp + 0x280], ebx
call fcn.005ea9e0
add esp, 0xc
test eax, eax
jne 0x4157ab
lea eax, [esp + 0x64]
lea ecx, [esp + 0xc]
push eax
call fcn.00603bc5
jmp 0x41584e
push 4
lea ecx, [esp + 0x68]
push 0x6a2bcc
push ecx
call fcn.005e73b0
add esp, 0xc
test eax, eax
jne 0x4157d3
lea edx, [esp + 0x68]
lea ecx, [esp + 0xc]
push edx
call fcn.00603bc5
jmp 0x41584e
lea eax, [esp + 0x64]
push str.system32_
push eax
call fcn.005e72b0
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x41594c
lea ecx, [esp + 0x168]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x41594c
lea edi, [esp + 0x168]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
mov al, byte [esp + ecx + 0x168]
cmp al, 0x5c
mov eax, 0x6d1c98
je 0x415832
mov eax, 0x6a2bbc
push esi
lea edx, [esp + 0x16c]
push eax
push edx
lea eax, [esp + 0x18]
push 0x6a1c34
push eax
call fcn.005fc86b
add esp, 0x14
mov ecx, dword [esp + 0xc]
push str.kltdi.sys
push ecx
call fcn.005e72b0
add esp, 8
test eax, eax
je 0x41594c
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov word [esp + 0x14], bx
call fcn.00401070
cmp esi, ebx
je 0x4158d1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4158d1
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push ebx
push 0xffffffffffffffff
push esi
push ebx
push ebx
call edi
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x4158d1
lea edx, [eax + eax + 2]
push edx
call fcn.005ffe3f
add esp, 4
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x4158d1
mov ecx, dword [esp + 0x18]
push ecx
push eax
push 0xffffffffffffffff
push esi
push ebx
push ebx
call edi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
mov byte [esp + 0x274], 1
cmp eax, ebx
jne 0x4158e5
lea eax, [esp + 0x14]
lea edx, [esp + 0x24]
push 0x40
push edx
push eax
call fcn.0041bef0
add esp, 0xc
test eax, eax
je 0x41593c
push 8
lea eax, [esp + 0x28]
push str.1.2.0.13
push eax
call fcn.005e73b0
add esp, 0xc
test eax, eax
jne 0x41593c
lea ecx, [esp + 0x10]
mov byte [esp + 0x274], bl
call fcn.00401070
lea ecx, [esp + 0xc]
mov dword [esp + 0x274], 0xffffffff
call fcn.00603a3c
mov eax, 1
jmp 0x415962
lea ecx, [esp + 0x10]
mov byte [esp + 0x274], bl
call fcn.00401070
lea ecx, [esp + 0xc]
mov dword [esp + 0x274], 0xffffffff
call fcn.00603a3c
xor eax, eax
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x26c
ret