Function at 0x4107c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c573
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x47b008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 2
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], eax
mov eax, esi
jb 0x41083a
mov eax, dword [esi]
mov edi, dword [ebp + 8]
xor ecx, ecx
mov word [eax], cx
test edi, edi
je 0x41085d
xor eax, eax
mov ecx, 0x46c558
lea ecx, [ecx]
cmp dword [ecx], edi
je 0x41089d
inc eax
add ecx, 0x10
cmp eax, 0x71
jb 0x410850
mov edi, 1
lea ecx, [ebp - 0x58]
call fcn.00401520
lea ecx, [ebp - 0x70]
call fcn.00401520
lea ecx, [ebp - 0x88]
call fcn.00401520
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042207c
mov esp, ebp
pop ebp
ret 8
shl eax, 4
lea eax, [eax + 0x46c558]
test eax, eax
je 0x41085d
lea eax, [ebp - 0x70]
mov dl, 1
push eax
xor ecx, ecx
call fcn.00418bb0
add esp, 4
test al, al
jne 0x4108f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push str.GetServiceImagePathByType_failed_with__i
push eax
call fcn.00411e60
add esp, 0xc
mov ecx, esi
push eax
call fcn.00403810
lea ecx, [ebp - 0x28]
call fcn.00401520
mov edi, 4
jmp 0x410862
cmp byte [ebx + 0x64], 0
jne 0x410904
mov edx, esi
lea ecx, [ebp - 0x70]
call fcn.00411200
test al, al
je 0x4108e6
lea edx, [ebp - 0x58]
mov ecx, edi
call fcn.004172b0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
cmp eax, 1
je 0x410a0c
push 0x19
push str.Access_to_registry_denied
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.004016e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
push 0x1a
push str.setup_error.error_registry
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.004016e0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x40]
mov ecx, ebx
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0040fa00
push eax
mov ecx, esi
call fcn.00403810
lea ecx, [ebp - 0xa0]
call fcn.00401520
lea ecx, [ebp - 0x40]
call fcn.00401680
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00401680
push 2
push 0x46ec68
mov ecx, esi
call fcn.0040a810
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
jb 0x4109b8
mov eax, dword [ebp - 0x58]
push dword [ebp - 0x48]
mov ecx, esi
push eax
call fcn.0040a810
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
cmp ecx, edx
jae 0x4109eb
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
cmp edx, 8
jb 0x4109da
mov esi, dword [esi]
mov dword [esi + ecx*2], 0x29
mov edi, 3
jmp 0x410862
push 0x29
mov byte [ebp - 0xa4], 0
push dword [ebp - 0xa4]
push ecx
mov ecx, esi
call fcn.0040ac30
mov edi, 3
jmp 0x410862
xor eax, eax
mov dword [ebp - 0x14], 7
push 0x46e75c
mov word [ebp - 0x28], ax
call fcn.00401590
lea edx, [ebp - 0x88]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.004185b0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00401520
push 2
push 0
push 0
mov edi, 5
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x410b3f
push str.Provides_integrated_security_and_services_for_online_multiplayer_games.
lea ecx, [ebp - 0x40]
call fcn.00401490
push 0x46e75c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.00401490
push esi
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x70]
mov ecx, ebx
push eax
lea edx, [ebp - 0x28]
call fcn.00411450
add esp, 0xc
lea ecx, [ebp - 0x28]
mov edi, eax
call fcn.00401520
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00401520
test edi, edi
je 0x410b33
lea eax, [ebp - 0x28]
push str._EAC_Setup___Info__Retrying_the_service_creation_once_more_in_2_seconds..
push eax
call fcn.00411e60
add esp, 8
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
jb 0x410acf
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x28]
call fcn.00401520
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.Provides_integrated_security_and_services_for_online_multiplayer_games.
lea ecx, [ebp - 0x40]
call fcn.00401490
push 0x46e75c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call fcn.00401490
push esi
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x70]
mov ecx, ebx
push eax
lea edx, [ebp - 0x28]
call fcn.00411450
add esp, 0xc
lea ecx, [ebp - 0x28]
mov edi, eax
call fcn.00401520
lea ecx, [ebp - 0x40]
call fcn.00401520
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x410862
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xa0]
push str.OpenSCManager_failed_with__i
push eax
call fcn.00411e60
add esp, 0xc
mov ecx, esi
push eax
call fcn.00403810
lea ecx, [ebp - 0xa0]
call fcn.00401520
jmp 0x410862