Function at 0x46e8e0
Capabilities:
Delete registry key
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x4f96c6
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x54a800]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
push edi
mov eax, dword [0x54a800]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
push str.Starting_Launcher
mov dword [esp + 0x1c], edi
call fcn.00477e30
mov esi, 1
add esp, 4
cmp dword [ebp + 8], esi
jle 0x46eb42
mov dword [esp + 0x54], 0x3d
lea esp, [esp]
mov edx, dword [edi + esi*4]
xor eax, eax
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
mov word [esp + 0x58], ax
cmp word [edx], ax
jne 0x46e973
xor ecx, ecx
jmp 0x46e98f
mov ecx, edx
lea edi, [ecx + 2]
jmp 0x46e980
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46e980
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x60]
call fcn.0046b720
push 1
push ecx
lea eax, [esp + 0x5c]
mov dword [esp + 0xb8], 0
push eax
lea ecx, [esp + 0x64]
call fcn.00470980
mov edi, dword [esp + 0x6c]
lea ecx, [esp + 0x58]
mov edx, dword [esp + 0x58]
cmp edi, 8
mov dword [esp + 0x70], eax
cmovae ecx, edx
cmp word [ecx], 0x2d
jne 0x46ea37
cmp eax, 0xffffffff
je 0x46ea37
dec eax
lea ecx, [esp + 0x58]
push eax
push 1
lea eax, [esp + 0x24]
push eax
call fcn.0046f000
push 9
push str.productid
mov byte [esp + 0xb8], 1
push dword [eax + 0x10]
push ecx
mov ecx, eax
call fcn.00473600
test eax, eax
mov byte [esp + 0xb0], 0
sete al
cmp dword [esp + 0x30], 8
mov byte [esp + 0x17], al
jb 0x46ea2b
push dword [esp + 0x1c]
call fcn.004cd56c
mov al, byte [esp + 0x1b]
add esp, 4
test al, al
jne 0x46ea63
mov edi, dword [esp + 0x6c]
mov edx, dword [esp + 0x58]
mov dword [esp + 0xb0], 0xffffffff
cmp edi, 8
jb 0x46ea50
push edx
call fcn.004cd56c
add esp, 4
inc esi
cmp esi, dword [ebp + 8]
jge 0x46eb42
mov edi, dword [esp + 0x18]
jmp 0x46e950
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x58]
push 0xffffffffffffffff
inc eax
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.0046f000
mov edx, eax
mov byte [esp + 0xb0], 2
cmp dword [edx + 0x14], 8
jb 0x46ea8b
mov edx, dword [edx]
xor eax, eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
cmp word [edx], ax
jne 0x46eaab
xor ecx, ecx
jmp 0x46eabf
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46eab0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.0046b720
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0xb4], 3
call fcn.00476700
add esp, 4
mov dword [0x5609ac], eax
cmp dword [esp + 0x30], 8
jb 0x46eaf7
push dword [esp + 0x1c]
call fcn.004cd56c
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
cmp dword [esp + 0x88], 8
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
jb 0x46eb24
push dword [esp + 0x74]
call fcn.004cd56c
add esp, 4
mov dword [esp + 0xb0], 0xffffffff
cmp dword [esp + 0x6c], 8
jb 0x46eb42
push dword [esp + 0x58]
call fcn.004cd56c
add esp, 4
cmp dword [0x5609ac], 0
je 0x46eec4
xorps xmm0, xmm0
mov dword [esp + 0x8c], 0
push 0xf
xor eax, eax
movdqa xmmword [esp + 0x78], xmm0
push str.SoftwareMinion
lea ecx, [esp + 0x3c]
movq qword [esp + 0x8c], xmm0
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], ax
call fcn.0046b720
mov dword [esp + 0xb0], 4
xor eax, eax
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], 0
mov word [esp + 0x74], ax
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x3c]
mov byte [esp + 0xb8], 5
push eax
lea ecx, [esp + 0x80]
call fcn.0046b300
cmp dword [esp + 0x48], 8
lea ecx, [esp + 0x8c]
push ecx
push 0xf003f
lea eax, [esp + 0x3c]
cmovae eax, dword [esp + 0x3c]
push 0
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [esp + 0x48], 8
jb 0x46ec13
push dword [esp + 0x34]
call fcn.004cd56c
add esp, 4
xor eax, eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
mov dword [esp + 0xb0], 6
mov eax, dword [esp + 0x8c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x46ec7a
cmp dword [esp + 0x88], 8
lea eax, [esp + 0x74]
cmovae eax, dword [esp + 0x74]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x46ec71
push eax
call esi
xor eax, eax
mov dword [esp + 0x8c], eax
mov edi, 1
cmp dword [ebp + 8], edi
jle 0x46ede3
mov dword [esp + 0x70], 0x3d
mov eax, dword [esp + 0x18]
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
mov edx, dword [eax + edi*4]
xor eax, eax
mov word [esp + 0x58], ax
cmp word [edx], ax
jne 0x46ecb7
xor ecx, ecx
jmp 0x46eccf
mov ecx, edx
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46ecc0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x60]
call fcn.0046b720
push 1
push ecx
lea eax, [esp + 0x78]
mov byte [esp + 0xb8], 7
push eax
lea ecx, [esp + 0x64]
call fcn.00470980
mov esi, dword [esp + 0x6c]
lea ecx, [esp + 0x58]
mov edx, dword [esp + 0x58]
cmp esi, 8
mov dword [esp + 0x54], eax
cmovae ecx, edx
cmp word [ecx], 0x2d
jne 0x46edb6
cmp eax, 0xffffffff
je 0x46edb6
sub esp, 0x18
inc eax
mov ecx, esp
mov dword [esp + 0x64], esp
push 0xffffffffffffffff
push eax
push ecx
lea ecx, [esp + 0x7c]
call fcn.0046f000
sub esp, 0x18
mov byte [esp + 0xe0], 8
mov eax, dword [esp + 0x84]
mov ecx, esp
mov dword [esp + 0x84], esp
dec eax
push eax
push 1
push ecx
lea ecx, [esp + 0x94]
call fcn.0046f000
sub esp, 0x1c
mov byte [esp + 0xfc], 9
mov esi, esp
xor eax, eax
mov ecx, esi
push 0xffffffffffffffff
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push eax
mov word [esi], ax
lea eax, [esp + 0xc8]
push eax
call fcn.0046b300
mov eax, dword [esp + 0xd8]
mov dword [esi + 0x18], eax
mov byte [esp + 0xfc], 7
call fcn.0046e180
mov esi, dword [esp + 0xb8]
add esp, 0x4c
mov edx, dword [esp + 0x58]
mov byte [esp + 0xb0], 6
cmp esi, 8
jb 0x46edcc
push edx
call fcn.004cd56c
add esp, 4
inc edi
cmp edi, dword [ebp + 8]
jl 0x46ec90
mov eax, dword [esp + 0x8c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x46edea
push eax
call esi
push 0
push 0x530f30
lea ecx, [esp + 0x7c]
mov dword [esp + 0x94], 0
call fcn.0046b720
push str.Preparations_for_launch_done_n
call fcn.00477e30
add esp, 4
cmp dword [0x55b0b8], 0
jbe 0x46ee69
cmp dword [0x55b100], 0
jbe 0x46ee62
cmp dword [0x55b118], 0
jbe 0x46ee5b
mov eax, dword [0x5609ac]
dec eax
cmp eax, 5
ja case.default.0x46ee38
jmp dword [eax*4 + 0x46ef10]
call fcn.0046cd80
jmp case.default.0x46ee38
call fcn.0046b880
jmp case.default.0x46ee38
call fcn.0046c5c0
jmp case.default.0x46ee38
call fcn.0046d4b0
jmp case.default.0x46ee38
push str.No_valid_bot_path_
jmp 0x46ee6e
push str.No_valid_dat_path_
jmp 0x46ee6e
push str.No_valid_Game_exe_path_
call fcn.00477e30
add esp, 4
mov dword [esp + 0xb0], 0xffffffff
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x46ee8f
push eax
call esi
cmp dword [esp + 0x88], 8
jb 0x46eea5
push dword [esp + 0x74]
call fcn.004cd56c
add esp, 4
xor eax, eax
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], 0
mov word [esp + 0x74], ax
jmp 0x46eed3
push 0
push str.Unknown_Game__ID___d
call fcn.00477e30
add esp, 8
push dword [0x5609a8]
push str.Exiting_Launcher__returning_PID___d
call fcn.00477e30
mov eax, dword [0x5609a8]
add esp, 8
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004cd571
mov esp, ebp
pop ebp
ret