Function at 0x4a4ed88b
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4a4f40ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x214], ecx
cmp eax, edi
jne 0x4a4ed9df
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
push edi
push ecx
mov dword [ebp - 0x210], edi
call dword [0x4a4f4018]
mov ebx, eax
cmp ebx, edi
jne 0x4a4ed9c4
mov edi, str.ShellOpenCommand
cmp word [ebp - 0x20c], 0x2e
je 0x4a4ed991
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4a4ed8fa
sub eax, edx
sar eax, 1
mov ebx, eax
mov eax, edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x4a4ed90f
sub eax, ecx
sar eax, 1
lea eax, [eax + ebx + 1]
cmp eax, esi
ja 0x4a4ed991
push edi
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.4a4d20a9
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call fcn.4a4ed003
xor ecx, ecx
mov dword [ebp - 0x218], eax
mov word [ebp + ebx*2 - 0x20c], cx
test eax, eax
je 0x4a4ed986
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4a4ed95c
sub eax, edx
sar eax, 1
je 0x4a4ed986
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push eax
push str._s_s_r_n
call fcn.4a4d58f3
add esp, 0xc
push dword [ebp - 0x218]
call fcn.4a4d142e
cmp dword [0x4a4f41b4], 0
jne 0x4a4ed9d7
inc dword [ebp - 0x210]
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
push dword [ebp - 0x214]
call dword [0x4a4f4018]
mov ebx, eax
test ebx, ebx
je 0x4a4ed8e3
cmp ebx, 0x103
jne 0x4a4edb46
xor ebx, ebx
jmp 0x4a4edb46
xor eax, eax
inc eax
jmp 0x4a4edb48
cmp word [eax], 0x2e
jne 0x4a4ed9fd
push eax
push 1
push 0x400023a5
call fcn.4a4d6d44
add esp, 0xc
push 0x7b
pop eax
jmp 0x4a4edb48
push edi
push eax
call fcn.4a4d2b0d
push eax
call fcn.4a4d19d6
mov ebx, eax
mov dword [ebp - 0x210], ebx
cmp ebx, edi
je 0x4a4ed9d7
push 0x20
push ebx
call fcn.4a4d2148
cmp eax, edi
je 0x4a4eda27
xor ecx, ecx
mov word [eax], cx
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x4a4eda2c
sub eax, edx
sar eax, 1
mov edi, str.ShellOpenCommand
mov edx, eax
mov eax, edi
lea ecx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x4a4eda46
sub eax, ecx
sar eax, 1
lea eax, [eax + edx + 1]
mov esi, 0x104
push ebx
cmp eax, esi
jbe 0x4a4eda81
push 1
push 0x400023db
call fcn.4a4d6d44
add esp, 0xc
push 0x7b
pop esi
push ebx
call fcn.4a4d142e
mov eax, esi
jmp 0x4a4edb48
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.4a4d185a
push edi
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.4a4d20a9
lea eax, [ebp - 0x220]
push eax
push 0x2000000
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call dword [fcn.4a4d1360]
mov ebx, eax
test ebx, ebx
je 0x4a4edae2
push dword [ebp - 0x210]
push 1
push 0x400023a5
call fcn.4a4d6d44
mov esi, ebx
mov ebx, dword [ebp - 0x210]
add esp, 0xc
jmp 0x4a4eda74
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call fcn.4a4ed003
mov esi, eax
test esi, esi
je 0x4a4edb20
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4a4edafd
sub eax, edx
sar eax, 1
je 0x4a4edb20
push esi
push dword [ebp - 0x210]
push str._s_s_r_n
call fcn.4a4d58f3
jmp 0x4a4edb32
push dword [ebp - 0x210]
push 1
push 0x400023a5
call fcn.4a4d6d44
add esp, 0xc
push esi
call fcn.4a4d142e
push dword [ebp - 0x210]
call fcn.4a4d142e
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.4a4d13a9
leave
ret 8