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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x672f30
push 0x62903c
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 0x57ef1d
mov eax, dword [ebp + 0xc]
mov edx, 0x6eff10
sub edx, eax
jmp 0x57eee0
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x57eee0
mov eax, dword [str.readme.rtf]
mov dword [0x6f0398], eax
mov ecx, dword [0x6729ec]
mov dword [0x6f039c], ecx
mov dx, word [0x6729f0]
mov word [0x6f03a0], dx
mov al, byte [0x6729f2]
mov byte [0x6f03a2], al
jmp 0x57f004
mov esi, dword [0x722ae0]
push 0x6eff10
mov ecx, dword [0x69ff30]
mov ebx, 0x400
mov edi, esi
call fcn.0057e540
add esp, 4
test eax, eax
jne 0x57ef91
mov ecx, 0x409
cmp dword [0x69ff30], ecx
je 0x57ef62
push 0x6eff10
mov eax, dword [ebp + 8]
call fcn.0057e540
add esp, 4
test eax, eax
jne 0x57ef91
push 0x400
push 0x6eff10
mov ecx, dword [ebp + 8]
push ecx
push esi
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x57ef91
mov edx, dword [ebp + 8]
push edx
push str.Missing_error_string__d
push 0x6eff10
call fcn.006238e3
add esp, 0xc
mov esi, dword [0x722ae0]
push 0x6f0398
mov ecx, dword [0x69ff30]
mov ebx, 0x200
mov eax, dword [ebp + 0xc]
mov edi, esi
call fcn.0057e540
add esp, 4
test eax, eax
jne 0x57f004
mov ecx, 0x409
cmp dword [0x69ff30], ecx
je 0x57efd9
push 0x6f0398
mov eax, dword [ebp + 0xc]
call fcn.0057e540
add esp, 4
test eax, eax
jne 0x57f004
push 0x200
push 0x6f0398
mov eax, dword [ebp + 0xc]
push eax
push esi
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x57f004
push str.readme.rtf
push 0x6f0398
call fcn.006238e3
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 [0x722ae0]
mov dword [ebp - 0x24], edi
push 0x6f0318
mov ecx, dword [0x69ff30]
mov ebx, 0x80
mov eax, esi
call fcn.0057e540
add esp, 4
test eax, eax
jne 0x57f06f
mov ecx, 0x409
cmp dword [0x69ff30], ecx
je 0x57f05a
push 0x6f0318
mov eax, esi
call fcn.0057e540
add esp, 4
test eax, eax
jne 0x57f06f
push 0x80
push 0x6f0318
push esi
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
xor ebx, ebx
cmp eax, ebx
jne 0x57f087
push str.Halo___Error
push 0x6f0318
call fcn.006238e3
add esp, 8
mov eax, dword [ebp + 0x10]
mov dword [0x6f0314], eax
mov eax, dword [0x722ae4]
cmp eax, ebx
je 0x57f107
mov edi, 0x6eff10
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x57f0a0
mov cx, word [0x6729bc]
mov word [edi], cx
mov dl, byte [0x6729be]
mov byte [edi + 2], dl
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x57f0c0
sub eax, ecx
mov esi, ecx
mov edi, 0x6eff10
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x57f0d1
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, 0x6eff10
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x57f0f0
mov ax, word [0x660fec]
mov word [edi], ax
mov dword [0x722ae4], ebx
cmp dword [ebp + 0x10], ebx
jne 0x57f1a8
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x722ac0]
push edx
mov eax, dword [0x722abc]
push eax
mov ecx, dword [0x722ab8]
push ecx
push str._s__s__0x_04x_:_d
lea edx, [ebp - 0x178]
push edx
call fcn.006238e3
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 0x57f1a8
movsx eax, byte [ebp - 0x47]
sub eax, 0x30
mov dword [0x71961c], 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 [0x7460e4]
cmp edi, ebx
jne 0x57f244
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 [0x7460e0]
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], 0x6710e0
lea ecx, [ebp - 0x78]
push ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
push ebx
mov edx, dword [0x7460e0]
push edx
push ebx
push ebx
push closesocket
push closesocket
push closesocket
push closesocket
push closesocket
push 0x6710e0
push 0x6710e0
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, 0x57e9d0
mov esi, dword [0x722ae0]
call fcn.0057e620
add esp, 8
mov ebx, eax
push 0
call dword [sym.imp.USER32.dll_ShowCursor]
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x57f37f
cmp ebx, 2
je 0x57f37f
mov eax, dword [0x7460e4]
test eax, eax
je 0x57f294
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x57f2ac
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [0x7460e0]
push eax
push 0x6710e0
call dword [sym.imp.USER32.dll_UnregisterClassA]
mov eax, dword [0x722ae8]
test eax, eax
je 0x57f35e
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x722ac0]
push edx
mov eax, dword [0x722abc]
push eax
mov ecx, dword [0x722ab8]
push ecx
push str._s__s__0x_04x_:_d
lea edx, [ebp - 0x278]
push edx
call fcn.006238e3
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 0x57f320
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 0x57f35e
movsx eax, byte [ebp - 0x37]
jmp 0x57f18f
test ebx, ebx
je 0x57f36c
mov dword [0x71961c], 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.0057ee40
mov dword [ebp - 4], 0
mov byte [0x721db5], 1
call fcn.00522830
call fcn.00518280
call fcn.0054b190
call fcn.00543070
jmp 0x57f3b1
mov dword [ebp - 4], 0xffffffff
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]