Function at 0x582630
Capabilities:
Query or enumerate registry value
Set registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x612658
push 0x5cdc5c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x268
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x5826ad
mov eax, dword [ebp + 0xc]
mov edx, 0x68aee0
sub edx, eax
jmp 0x582670
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x582670
mov eax, dword [str.readme.rtf]
mov dword [0x68b368], eax
mov ecx, dword [0x612114]
mov dword [0x68b36c], ecx
mov dx, word [0x612118]
mov word [0x68b370], dx
mov al, byte [0x61211a]
mov byte [0x68b372], al
jmp 0x582794
mov esi, dword [0x6bddc0]
push 0x68aee0
mov ecx, dword [0x63ae28]
mov ebx, 0x400
mov edi, esi
call fcn.00581cd0
add esp, 4
test eax, eax
jne 0x582721
mov ecx, 0x409
cmp dword [0x63ae28], ecx
je 0x5826f2
push 0x68aee0
mov eax, dword [ebp + 8]
call fcn.00581cd0
add esp, 4
test eax, eax
jne 0x582721
push 0x400
push 0x68aee0
mov ecx, dword [ebp + 8]
push ecx
push esi
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x582721
mov edx, dword [ebp + 8]
push edx
push str.Missing_error_string__d
push 0x68aee0
call fcn.005c87a3
add esp, 0xc
mov esi, dword [0x6bddc0]
push 0x68b368
mov ecx, dword [0x63ae28]
mov ebx, 0x200
mov eax, dword [ebp + 0xc]
mov edi, esi
call fcn.00581cd0
add esp, 4
test eax, eax
jne 0x582794
mov ecx, 0x409
cmp dword [0x63ae28], ecx
je 0x582769
push 0x68b368
mov eax, dword [ebp + 0xc]
call fcn.00581cd0
add esp, 4
test eax, eax
jne 0x582794
push 0x200
push 0x68b368
mov eax, dword [ebp + 0xc]
push eax
push esi
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x582794
push str.readme.rtf
push 0x68b368
call fcn.005c87a3
add esp, 8
xor ecx, ecx
mov edx, dword [ebp + 0x10]
test edx, edx
setne cl
add ecx, 0x7f
mov esi, ecx
mov edi, dword [0x6bddc0]
mov dword [ebp - 0x24], edi
push 0x68b2e8
mov ecx, dword [0x63ae28]
mov ebx, 0x80
mov eax, esi
call fcn.00581cd0
add esp, 4
test eax, eax
jne 0x5827ff
mov ecx, 0x409
cmp dword [0x63ae28], ecx
je 0x5827ea
push 0x68b2e8
mov eax, esi
call fcn.00581cd0
add esp, 4
test eax, eax
jne 0x5827ff
push 0x80
push 0x68b2e8
push esi
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
xor ebx, ebx
cmp eax, ebx
jne 0x582817
push str.Halo___Error
push 0x68b2e8
call fcn.005c87a3
add esp, 8
mov eax, dword [ebp + 0x10]
mov dword [0x68b2e4], eax
mov eax, dword [0x6bddc4]
cmp eax, ebx
je 0x582897
mov edi, 0x68aee0
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x582830
mov cx, word [0x6120e4]
mov word [edi], cx
mov dl, byte [0x6120e6]
mov byte [edi + 2], dl
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x582850
sub eax, ecx
mov esi, ecx
mov edi, 0x68aee0
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x582861
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x68aee0
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x582880
mov ax, word [0x600658]
mov word [edi], ax
mov dword [0x6bddc4], ebx
cmp dword [ebp + 0x10], ebx
jne 0x582938
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x6bdda0]
push edx
mov eax, dword [0x6bdd9c]
push eax
mov ecx, dword [0x6bdd98]
push ecx
push str._s__s__0x_04x_:_d
lea edx, [ebp - 0x178]
push edx
call fcn.005c87a3
add esp, 0x18
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftMicrosoft_GamesHalo_CE
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x28], 0x10
mov byte [ebp - 0x48], bl
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x48]
push edx
push ebx
push ebx
lea eax, [ebp - 0x178]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x48], 0x79
jne 0x582938
movsx eax, byte [ebp - 0x47]
sub eax, 0x30
mov dword [0x6b46bc], eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [0x6e13c4]
cmp edi, ebx
jne 0x5829d4
mov ecx, 0xc
xor eax, eax
lea edi, [ebp - 0x78]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x78], 0x30
mov eax, dword [sym.imp.USER32.dll_DefWindowProcA]
mov dword [ebp - 0x70], eax
mov eax, dword [0x6e13c0]
mov dword [ebp - 0x64], eax
push 0x66
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x60], eax
push 0x7f00
push ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x50], 0x61081c
lea ecx, [ebp - 0x78]
push ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
push ebx
mov edx, dword [0x6e13c0]
push edx
push ebx
push ebx
push closesocket
push closesocket
push closesocket
push closesocket
push closesocket
push 0x61081c
push 0x61081c
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov edi, eax
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
call dword [sym.imp.USER32.dll_ShowCursor]
push edi
push 0x66
mov ebx, 0x582160
mov esi, dword [0x6bddc0]
call fcn.00581db0
add esp, 8
mov ebx, eax
push 0
call dword [sym.imp.USER32.dll_ShowCursor]
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x582b0f
cmp ebx, 2
je 0x582b0f
mov eax, dword [0x6e13c4]
test eax, eax
je 0x582a24
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x582a3c
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [0x6e13c0]
push eax
push 0x61081c
call dword [sym.imp.USER32.dll_UnregisterClassA]
mov eax, dword [0x6bddc8]
test eax, eax
je 0x582aee
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x6bdda0]
push edx
mov eax, dword [0x6bdd9c]
push eax
mov ecx, dword [0x6bdd98]
push ecx
push str._s__s__0x_04x_:_d
lea edx, [ebp - 0x278]
push edx
call fcn.005c87a3
add esp, 0x18
push 0
lea eax, [ebp - 0x20]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareMicrosoftMicrosoft_GamesHalo_CE
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov byte [ebp - 0x38], 0x79
mov cl, bl
add cl, 0x30
mov byte [ebp - 0x37], cl
mov byte [ebp - 0x36], 0
lea eax, [ebp - 0x38]
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x582ab0
sub eax, ecx
inc eax
push eax
lea edx, [ebp - 0x38]
push edx
push 1
push 0
lea eax, [ebp - 0x278]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x38]
test al, al
je 0x582aee
movsx eax, byte [ebp - 0x37]
jmp 0x58291f
test ebx, ebx
je 0x582afc
mov dword [0x6b46bc], 1
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.005825d0
mov dword [ebp - 4], 0
mov byte [0x6bd095], 1
call fcn.00525b70
call fcn.0051bb30
call fcn.0054e650
call fcn.005464f0
jmp 0x582b41
mov dword [ebp - 4], 0xffffffff
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]