Function at 0x43f770
Capabilities:
Create process on windows
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe80
push ebx
xor ebx, ebx
mov dword [ebp - 0x180], ebx
mov dword [ebp - 0x17c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405cd8
mov eax, dword [ebp - 8]
call fcn.00405cd8
mov eax, dword [ebp - 0xc]
call fcn.00405cd8
xor eax, eax
push ebp
push 0x43fa3c
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov dword [ebp - 0x1c], 0x104
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push 0x43fa4c
push 0x80000000
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x43fa11
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x121]
push eax
push 0
push 0
push 0x43fa80
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x43fa08
mov eax, dword [ebp - 0x1c]
mov byte [ebp + eax - 0x121], 0
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x121]
mov ecx, 0x105
push 0
call fcn.00405964
push 0x104
lea eax, [ebp - 0x121]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00405ce8
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x121]
mov ecx, 0x105
push 0
call fcn.00405964
cmp dword [ebp - 0x10], 0
je 0x43fa08
lea eax, [ebp - 0x17c]
push eax
mov cl, 0x25
mov edx, 0x594c34
mov eax, dword [ebp - 8]
call fcn.0043f61c
mov edx, dword [ebp - 0x17c]
lea eax, [ebp - 8]
call fcn.004056dc
lea eax, [ebp - 0x180]
push eax
mov cl, 0x25
mov edx, 0x594c34
mov eax, dword [ebp - 0xc]
call fcn.0043f61c
mov edx, dword [ebp - 0x180]
lea eax, [ebp - 0xc]
call fcn.004056dc
lea eax, [ebp - 4]
call fcn.0043e638
push 0x43fa90
push dword [ebp - 4]
push 0x43faa4
push dword [ebp - 8]
push 0x43fabc
push dword [ebp - 0xc]
lea eax, [ebp - 0x14]
mov edx, 6
call fcn.00405b3c
push 0
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov edx, 0x43fad0
call fcn.0040bc28
test al, al
jne 0x43f92f
lea eax, [ebp - 0x10]
xor edx, edx
call fcn.0040583c
call fcn.004059c0
mov edx, dword [ebp - 0x10]
cmp byte [edx + eax - 1], 0x20
je 0x43f924
push dword [ebp - 0x10]
push 0x43fae0
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00405b3c
jmp 0x43f92f
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x14]
call fcn.004059f4
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x43f99a
lea eax, [ebp - 0x10]
xor edx, edx
call fcn.0040583c
call fcn.004059c0
cmp eax, 0x7ffe
jle 0x43f99a
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x7ffd], 0x25
jne 0x43f96e
lea eax, [ebp - 0x10]
xor ecx, ecx
mov edx, 0x7ffd
call fcn.00405fcc
jmp 0x43f99a
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x7ffc], 0x25
jne 0x43f98b
lea eax, [ebp - 0x10]
xor ecx, ecx
mov edx, 0x7ffc
call fcn.00405fcc
jmp 0x43f99a
lea eax, [ebp - 0x10]
xor ecx, ecx
mov edx, 0x7ffe
call fcn.00405fcc
lea eax, [ebp - 0x168]
mov edx, 0x44
call fcn.0040a0ec
mov dword [ebp - 0x168], 0x44
lea eax, [ebp - 0x178]
push eax
lea eax, [ebp - 0x168]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
call fcn.00405ce8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x43fa08
mov eax, dword [ebp - 0x174]
test eax, eax
je 0x43f9f8
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x178]
test eax, eax
je 0x43fa08
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43fa43
lea eax, [ebp - 0x180]
mov edx, 2
call fcn.00405650
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00405650
ret