Function at 0x49e630
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10
cmp dword [0x4a116c], 0
push ebx
push esi
push edi
push ebp
jne 0x49e686
cmp word [0x4a49c1], 0
jl 0x49e670
movsx eax, word [0x4a49c1]
shl eax, 2
lea ecx, [eax + eax*2]
mov eax, dword [0x4a4c4c]
lea edx, [ecx + ecx*4]
test byte [edx + eax + 0x28], 8
jne 0x49e686
cmp word [0x4a49c1], 0
jge 0x49e679
test byte [0x4a4c54], 8
jne 0x49e686
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret
cmp word [0x4a4b74], 0x8002
jne 0x49e6a7
cmp byte [0x4a49c3], 5
je 0x49e6a7
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret
cmp dword [0x4a1168], 0
je 0x49e6bd
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret
cmp word [0x4a1160], 0
jne 0x49e6d4
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret
cmp dword [0x4a1180], 2
jne 0x49e6ea
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret
push 0xbb80
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc_1]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock_1]
mov ebx, eax
test ebx, ebx
jne 0x49e70e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret
lea eax, [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push eax
push 0x4a1188
push SysReAllocString
call esi
test eax, eax
je 0x49e792
lea eax, [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push eax
push 0x4a1188
push SysReAllocString
call ebp
test eax, eax
je 0x49e76a
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle_1]
call edi
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock_1]
call ebp
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree_1]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret
push 0xa
mov eax, dword [0x4a4c28]
push ebx
push eax
call fcn.004a0c80
add esp, 0xc
push 0x14
push ebx
push 1
push 0x4a1188
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
jmp 0x49e798
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call edi
cmp dword [0x4a1180], 1
jne 0x49e7e1
test byte [0x4a494a], 0xa
je 0x49e7e1
lea eax, [esp + 0x14]
push eax
push 0x4a1198
push SysReAllocString
call esi
test eax, eax
jne 0x49e7dc
mov eax, dword [esp + 0x14]
push eax
call edi
test byte [0x4a494a], 0x20
jne 0x49e7e1
call fcn.0049e390
lea eax, [esp + 0x14]
mov ecx, dword [0x4a4b78]
push eax
push ecx
push SysReAllocString
call esi
test eax, eax
je 0x49e835
lea eax, [esp + 0x14]
mov ecx, dword [0x4a4b78]
push eax
push ecx
push SysReAllocString
call ebp
test eax, eax
je 0x49e835
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle_1]
call edi
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock_1]
call ebp
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree_1]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x14]
push eax
call edi
test byte [0x4a494a], 4
je 0x49e888
cmp byte [0x4a49c3], 1
jne 0x49e906
xor esi, esi
push 0x1010
mov word [0x4a49ad], si
push 0x4a10b8
mov word [0x4a49af], si
mov eax, dword [0x4a4bbc]
push eax
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
push esi
mov dword [0x4a1174], esi
call ebp
mov word [0x4a11b8], si
mov eax, dword [0x4a1174]
mov esi, 0x4a4950
mov edi, ebx
mov ecx, 0x20
xor bp, bp
mov dword [0x4a49c8], eax
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x10], 0x80
lea ecx, [ebx + 0x80]
mov dword [esp + 0x1c], ecx
movsx eax, bp
mov edi, dword [eax*4 + 0x4a49e0]
test edi, edi
je 0x49e94a
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, dword [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x1c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
add dword [esp + 0x10], ecx
lea ecx, [esp + 0x1c]
call fcn.0049f440
jmp 0x49e959
cmp byte [0x4a49c3], 2
jne 0x49e888
cmp word [0x4a11b8], 0
jne 0x49e888
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle_1]
call edi
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock_1]
call ebp
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree_1]
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x1c]
mov byte [eax], 0
inc dword [esp + 0x1c]
inc dword [esp + 0x10]
inc bp
cmp bp, 0x14
jl 0x49e8b5
push 0
push 0x4a4a70
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll__llseek]
mov esi, eax
push edi
xor esi, dword [0x4a4c28]
call dword [sym.imp.KERNEL32.dll__lclose]
cmp dword [0x4a1180], 1
jne 0x49ea20
mov dword [ebx + 0x7c], esi
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
mov edx, dword [esp + 0x10]
push eax
push ecx
mov ecx, ebx
call fcn.0049f8c0
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
push esi
mov edx, dword [0x4a4b78]
push eax
push 1
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle_1]
mov dword [esp + 0x14], eax
call edi
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock_1]
call ebp
push ebx
call edi
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree_1]
call ebx
mov edx, esi
mov ecx, dword [esp + 0x18]
call fcn.0049db90
test eax, eax
mov eax, dword [esp + 0x18]
push eax
jne 0x49ea5f
call edi
push eax
call ebp
mov eax, dword [esp + 0x18]
push eax
call edi
push eax
call ebx
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret
cmp dword [ebx + 0x7c], esi
je 0x49e99e
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle_1]
call edi
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock_1]
call ebp
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree_1]
xor eax, eax
pop ebp
mov word [0x4a11b8], ax
pop edi
pop esi
mov dword [0x4a1170], eax
mov eax, 1
pop ebx
add esp, 0x10
ret
call edi
push eax
call ebp
mov eax, dword [esp + 0x18]
push eax
call edi
push eax
call ebx
mov dword [0x4a116c], 0
cmp dword [esp + 0x10], 1
sbb eax, eax
pop ebp
neg eax
pop edi
pop esi
pop ebx
add esp, 0x10
ret