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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66c840
push 0x62423c
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 0x57a34d
mov eax, dword [ebp + 0xc]
mov edx, 0x6e9688
sub edx, eax
jmp 0x57a310
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x57a310
mov eax, dword [str.readme.rtf]
mov dword [0x6e9b10], eax
mov ecx, dword [0x66c300]
mov dword [0x6e9b14], ecx
mov dx, word [0x66c304]
mov word [0x6e9b18], dx
mov al, byte [0x66c306]
mov byte [0x6e9b1a], al
jmp 0x57a434
mov esi, dword [0x7147d8]
push 0x6e9688
mov ecx, dword [0x6997a0]
mov ebx, 0x400
mov edi, esi
call fcn.00579970
add esp, 4
test eax, eax
jne 0x57a3c1
mov ecx, 0x409
cmp dword [0x6997a0], ecx
je 0x57a392
push 0x6e9688
mov eax, dword [ebp + 8]
call fcn.00579970
add esp, 4
test eax, eax
jne 0x57a3c1
push 0x400
push 0x6e9688
mov ecx, dword [ebp + 8]
push ecx
push esi
call dword [sym.imp.user32.dll_LoadStringA]
test eax, eax
jne 0x57a3c1
mov edx, dword [ebp + 8]
push edx
push str.Missing_error_string__d
push 0x6e9688
call fcn.0061ed33
add esp, 0xc
mov esi, dword [0x7147d8]
push 0x6e9b10
mov ecx, dword [0x6997a0]
mov ebx, 0x200
mov eax, dword [ebp + 0xc]
mov edi, esi
call fcn.00579970
add esp, 4
test eax, eax
jne 0x57a434
mov ecx, 0x409
cmp dword [0x6997a0], ecx
je 0x57a409
push 0x6e9b10
mov eax, dword [ebp + 0xc]
call fcn.00579970
add esp, 4
test eax, eax
jne 0x57a434
push 0x200
push 0x6e9b10
mov eax, dword [ebp + 0xc]
push eax
push esi
call dword [sym.imp.user32.dll_LoadStringA]
test eax, eax
jne 0x57a434
push str.readme.rtf
push 0x6e9b10
call fcn.0061ed33
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 [0x7147d8]
mov dword [ebp - 0x24], edi
push 0x6e9a90
mov ecx, dword [0x6997a0]
mov ebx, 0x80
mov eax, esi
call fcn.00579970
add esp, 4
test eax, eax
jne 0x57a49f
mov ecx, 0x409
cmp dword [0x6997a0], ecx
je 0x57a48a
push 0x6e9a90
mov eax, esi
call fcn.00579970
add esp, 4
test eax, eax
jne 0x57a49f
push 0x80
push 0x6e9a90
push esi
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.user32.dll_LoadStringA]
xor ebx, ebx
cmp eax, ebx
jne 0x57a4b7
push str.Halo___Error
push 0x6e9a90
call fcn.0061ed33
add esp, 8
mov eax, dword [ebp + 0x10]
mov dword [0x6e9a8c], eax
mov eax, dword [0x7147dc]
cmp eax, ebx
je 0x57a537
mov edi, 0x6e9688
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x57a4d0
mov cx, word [0x66c2d0]
mov word [edi], cx
mov dl, byte [0x66c2d2]
mov byte [edi + 2], dl
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x57a4f0
sub eax, ecx
mov esi, ecx
mov edi, 0x6e9688
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x57a501
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, 0x6e9688
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x57a520
mov ax, word [0x65bcdc]
mov word [edi], ax
mov dword [0x7147dc], ebx
cmp dword [ebp + 0x10], ebx
jne 0x57a5d8
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x7147b8]
push edx
mov eax, dword [0x7147b4]
push eax
mov ecx, dword [0x7147b0]
push ecx
push str._s__s__0x_04x_:_d
lea edx, [ebp - 0x178]
push edx
call fcn.0061ed33
add esp, 0x18
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftMicrosoft_GamesHalo
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 0x57a5d8
movsx eax, byte [ebp - 0x47]
sub eax, 0x30
mov dword [0x70b434], 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 [0x737dc4]
cmp edi, ebx
jne 0x57a674
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 [0x737dc0]
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], str.Halo
lea ecx, [ebp - 0x78]
push ecx
call dword [sym.imp.user32.dll_RegisterClassExA]
push ebx
mov edx, dword [0x737dc0]
push edx
push ebx
push ebx
push closesocket
push closesocket
push closesocket
push closesocket
push closesocket
push str.Halo
push str.Halo
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, 0x579e00
mov esi, dword [0x7147d8]
call fcn.00579a50
add esp, 8
mov ebx, eax
push 0
call dword [sym.imp.user32.dll_ShowCursor]
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x57a7af
cmp ebx, 2
je 0x57a7af
mov eax, dword [0x737dc4]
test eax, eax
je 0x57a6c4
push 5
push eax
call dword [sym.imp.user32.dll_ShowWindow]
jmp 0x57a6dc
push edi
call dword [sym.imp.user32.dll_DestroyWindow]
mov eax, dword [0x737dc0]
push eax
push str.Halo
call dword [sym.imp.user32.dll_UnregisterClassA]
mov eax, dword [0x7147e0]
test eax, eax
je 0x57a78e
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x7147b8]
push edx
mov eax, dword [0x7147b4]
push eax
mov ecx, dword [0x7147b0]
push ecx
push str._s__s__0x_04x_:_d
lea edx, [ebp - 0x278]
push edx
call fcn.0061ed33
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
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 0x57a750
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 0x57a78e
movsx eax, byte [ebp - 0x37]
jmp 0x57a5bf
test ebx, ebx
je 0x57a79c
mov dword [0x70b434], 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.0057a270
mov dword [ebp - 4], 0
mov byte [0x713abd], 1
call fcn.0051df70
call fcn.00513be0
call fcn.00546780
call fcn.0053e760
jmp 0x57a7e1
mov dword [ebp - 4], 0xffffffff
push 1
call dword [sym.imp.kernel32.dll_ExitProcess]