Function at 0x410270
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43881c
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x4441a0]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
jne 0x4102a8
xor eax, eax
jmp 0x41079e
call fcn.00410010
mov dword [ebp - 0x824], eax
cmp dword [ebp - 0x824], 0
jne 0x4102c3
xor eax, eax
jmp 0x41079e
xor eax, eax
mov word [ebp - 0x81c], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x81a]
push ecx
call fcn.004135e0
add esp, 0xc
mov dword [ebp - 0x10], 0x800
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
push 1
push 0
push str.command
mov eax, dword [ebp - 0x824]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x14], 0
je 0x410335
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x81c]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx edx, word [ebp - 0x81c]
test edx, edx
je 0x410521
movzx eax, word [ebp - 0x81c]
cmp eax, 0x22
jne 0x4103da
lea ecx, [ebp - 0x81a]
mov dword [ebp - 0x828], ecx
mov edx, dword [ebp - 0x828]
movzx eax, word [edx]
test eax, eax
je 0x4103d5
push 0x22
mov ecx, dword [ebp - 0x828]
push ecx
call fcn.00411a60
add esp, 8
mov dword [ebp - 0x82c], eax
cmp dword [ebp - 0x82c], 0
je 0x4103d5
xor edx, edx
mov eax, dword [ebp - 0x82c]
mov word [eax], dx
mov ecx, dword [ebp - 0x828]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.00401770
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.00411a40
mov edx, dword [ebp - 0x82c]
add edx, 2
push edx
mov ecx, dword [ebp + 8]
add ecx, 8
call fcn.00401770
mov ecx, dword [ebp + 8]
add ecx, 8
call fcn.00411a40
jmp 0x410521
lea ecx, [ebp - 0x834]
call fcn.00401d60
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x838]
call fcn.00401d60
mov byte [ebp - 4], 1
lea eax, [ebp - 0x81c]
push eax
lea ecx, [ebp - 0x834]
call fcn.00401770
lea ecx, [ebp - 0x834]
push ecx
lea ecx, [ebp - 0x838]
call fcn.00402dc0
lea ecx, [ebp - 0x834]
call fcn.00411ab0
push 0
push str..exe
lea ecx, [ebp - 0x834]
call fcn.004023c0
mov dword [ebp - 0x830], eax
cmp dword [ebp - 0x830], 0xffffffff
je 0x410500
mov edx, dword [ebp - 0x830]
add edx, 4
push edx
lea eax, [ebp - 0x840]
push eax
lea ecx, [ebp - 0x834]
call fcn.004117e0
mov dword [ebp - 0x848], eax
mov ecx, dword [ebp - 0x848]
mov dword [ebp - 0x84c], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x84c]
push edx
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.00402dc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x840]
call fcn.00401e00
mov eax, dword [ebp - 0x830]
add eax, 5
push eax
lea ecx, [ebp - 0x844]
push ecx
lea ecx, [ebp - 0x838]
call fcn.00410de0
mov dword [ebp - 0x850], eax
mov edx, dword [ebp - 0x850]
mov dword [ebp - 0x854], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x854]
push eax
mov ecx, dword [ebp + 8]
add ecx, 8
call fcn.00402dc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x844]
call fcn.00401e00
mov ecx, dword [ebp + 8]
add ecx, 8
call fcn.00411a40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x838]
call fcn.00401e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x834]
call fcn.00401e00
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.0040f250
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x820], eax
cmp dword [ebp - 0x820], 0xffffffff
je 0x41054d
mov ecx, dword [ebp - 0x820]
and ecx, 0x10
je 0x410561
mov edx, dword [ebp - 0x824]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x41079e
mov ecx, dword [ebp + 8]
add ecx, 8
call fcn.00401c20
test eax, eax
jle 0x41059e
push 0
push 0x43d2cc
mov ecx, dword [ebp + 8]
add ecx, 8
call fcn.004023c0
cmp eax, 0xffffffff
je 0x41059e
mov eax, dword [ebp - 0x824]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x41079e
mov dword [ebp - 0x10], 0x800
mov ecx, dword [ebp - 0x10]
push ecx
push 0
lea edx, [ebp - 0x81c]
push edx
call fcn.004135e0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push str.ddeexec
mov ecx, dword [ebp - 0x824]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 0x824]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 0
jne 0x4105ee
xor eax, eax
jmp 0x41079e
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x81c]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx eax, word [ebp - 0x81c]
test eax, eax
je 0x410791
lea ecx, [ebp - 0x81c]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0xc
call fcn.00401770
mov dword [ebp - 0x83c], 0
lea edx, [ebp - 0x83c]
push edx
push 1
push 0
push str.Application
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x83c], 0
je 0x4106b7
mov dword [ebp - 0x10], 0x800
mov ecx, dword [ebp - 0x10]
push ecx
push 0
lea edx, [ebp - 0x81c]
push edx
call fcn.004135e0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x81c]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x83c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x81c]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x10
call fcn.00401770
mov ecx, dword [ebp - 0x83c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x83c], 0
lea edx, [ebp - 0x83c]
push edx
push 1
push 0
push str.Topic
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x83c], 0
je 0x41073d
mov dword [ebp - 0x10], 0x800
mov ecx, dword [ebp - 0x10]
push ecx
push 0
lea edx, [ebp - 0x81c]
push edx
call fcn.004135e0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x81c]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x83c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x81c]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x14
call fcn.00401770
mov ecx, dword [ebp - 0x83c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
add ecx, 0xc
call fcn.00401c20
test eax, eax
jle 0x410791
mov ecx, dword [ebp + 8]
add ecx, 0x10
call fcn.00401c20
test eax, eax
jle 0x410791
mov ecx, dword [ebp + 8]
add ecx, 0x14
call fcn.00401c20
test eax, eax
jle 0x410791
mov edx, dword [ebp + 8]
mov dword [edx], 1
push 0
push 0x43d2cc
mov ecx, dword [ebp + 8]
add ecx, 0xc
call fcn.004023c0
cmp eax, 0xffffffff
je 0x410791
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00412dbc
mov esp, ebp
pop ebp
ret