Function at 0x440480
Capabilities:
Accept command line arguments
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599deb
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x63434c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x230]
mov edi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x254], esi
push 0x22
mov dword [ebp - 0x230], 0
push str.SYSTEMCurrentControlSetServices_
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.0042e2d0
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
mov dword [ebp - 4], 0
jb 0x440505
mov edi, dword [edi]
push eax
push edi
lea ecx, [ebp - 0x230]
call fcn.0043ee20
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0055c530
add esp, 0xc
mov dword [ebp - 0x24c], 0
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x24c]
push ecx
push 0x20019
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x230]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4405f9
xor eax, eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov eax, dword [ebp - 0x24c]
test eax, eax
je 0x44059b
cmp eax, 0xffffffff
je 0x44059b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x4405db
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4405d1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x440763
push edx
push ecx
call fcn.00558004
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00557e89
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push str.ImagePath
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x250]
mov dword [ebp - 0x250], 0
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 0x250], 0
mov edi, eax
jle 0x4406f6
mov edx, dword [edi]
mov ecx, edx
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
lea ebx, [ecx + 2]
jmp 0x440680
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x440680
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x248]
call fcn.0042e2d0
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x248]
mov ecx, esi
push eax
call fcn.0043f980
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x440585
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4406e7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x440763
push edx
push ecx
call fcn.00558004
add esp, 8
jmp 0x440585
xor eax, eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov eax, dword [ebp - 0x24c]
test eax, eax
je 0x440725
cmp eax, 0xffffffff
je 0x440725
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x4405db
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4405d1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4405d1
call fcn.00566a14
int3