Function at 0x40ff20
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45601b
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x46f008]
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 esi, ecx
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xa0], 0
xor eax, eax
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
mov dword [ebp - 4], 1
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov dword [ebp - 0x88], eax
mov ebx, 7
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], ebx
mov word [ebp - 0x88], ax
mov byte [ebp - 4], 5
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x40ffbb
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 0x10], 0
mov word [eax], cx
cmp edx, 0x24f
je 0x41002d
push edx
lea eax, [ebp - 0x58]
push str.Incorrect_ID:__i
push eax
call fcn.004123f0
add esp, 0xc
mov ecx, edi
push eax
call fcn.00403700
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x410023
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410019
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410758
push edx
push ecx
call fcn.0041fbbf
add esp, 8
mov esi, 1
jmp 0x410674
lea eax, [ebp - 0x70]
mov dl, 1
push eax
xor ecx, ecx
call fcn.0041f580
add esp, 4
test al, al
jne 0x4100a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x58]
push str.GetServiceImagePathByType_failed_with__i
push eax
call fcn.004123f0
add esp, 0xc
mov ecx, edi
push eax
call fcn.00403700
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x41009b
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410091
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41075d
push edx
push ecx
call fcn.0041fbbf
add esp, 8
mov esi, 4
jmp 0x410674
cmp byte [esi + 0x64], 0
jne 0x4100c3
mov edx, edi
lea ecx, [ebp - 0x70]
call fcn.00411420
test al, al
jne 0x4100c3
mov esi, 4
jmp 0x410674
lea edx, [ebp - 0x88]
mov ecx, 0x24f
call fcn.0041d860
mov dword [ebp - 0x28], 0
cmp eax, 1
je 0x410303
push 0x19
push str.Access_to_registry_denied
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 5
call fcn.00401940
mov dword [ebp - 0x40], 0
push 0x1a
push str.setup_error.error_registry
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 7
call fcn.00401940
sub esp, 0x18
mov byte [ebp - 4], 9
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
call fcn.00403b00
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [esi + 0x68]
call fcn.00403220
lea eax, [ebp - 0x58]
mov ecx, edi
push eax
call fcn.00403700
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x41019b
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410191
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410762
push edx
push ecx
call fcn.0041fbbf
add esp, 8
xor eax, eax
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp edx, 0x10
jb 0x4101e7
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4101dd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410762
push edx
push ecx
call fcn.0041fbbf
add esp, 8
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x41021f
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410215
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410762
push edx
push ecx
call fcn.0041fbbf
add esp, 8
mov edx, dword [edi + 0x14]
mov eax, edx
mov ecx, dword [edi + 0x10]
sub eax, ecx
cmp eax, 2
jb 0x41024c
lea esi, [ecx + 2]
mov eax, edi
mov dword [edi + 0x10], esi
cmp edx, 8
jb 0x41023d
mov eax, dword [edi]
mov dword [eax + ecx*2], 0x280020
xor ecx, ecx
mov word [eax + esi*2], cx
jmp 0x410262
push 2
push 0x4671f0
push dword [ebp - 0xa4]
mov ecx, edi
push 2
call fcn.004045d0
mov ebx, dword [ebp - 0x74]
lea esi, [ebp - 0x88]
cmp ebx, 8
jb 0x410276
mov esi, dword [ebp - 0x88]
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
sub eax, ecx
mov edx, dword [ebp - 0x78]
cmp edx, eax
ja 0x4102dd
cmp dword [edi + 0x14], 8
lea eax, [edx + ecx]
mov dword [ebp - 0xa4], eax
mov dword [edi + 0x10], eax
mov eax, edi
mov dword [ebp - 0xa8], edi
jb 0x4102a7
mov eax, dword [edi]
mov dword [ebp - 0xa8], eax
lea ecx, [eax + ecx*2]
lea eax, [edx + edx]
push eax
push esi
push ecx
call fcn.00437380
mov eax, dword [ebp - 0xa8]
add esp, 0xc
mov ecx, dword [ebp - 0xa4]
xor edx, edx
push 0x29
mov word [eax + ecx*2], dx
mov ecx, edi
call fcn.004035d0
mov esi, 3
jmp 0x410674
push edx
push esi
push dword [ebp - 0xa4]
mov ecx, edi
push edx
call fcn.004045d0
mov ebx, dword [ebp - 0x74]
mov ecx, edi
push 0x29
call fcn.004035d0
mov esi, 3
jmp 0x410674
push 0xd
xor eax, eax
mov dword [ebp - 0x18], 0
push 0x46698c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 5
call fcn.00401680
lea edx, [ebp - 0xa0]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x28]
call fcn.0041e9f0
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41037a
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410370
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410767
push edx
push ecx
call fcn.0041fbbf
add esp, 8
push 2
push 0
push 0
mov esi, 5
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x410617
mov dword [ebp - 0x28], 0
push 0x47
xor eax, eax
mov dword [ebp - 0x18], 0
push str.Provides_integrated_security_and_services_for_online_multiplayer_games.
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 5
call fcn.00401680
mov dword [ebp - 0x40], 0
push 0xd
xor eax, eax
mov dword [ebp - 0x30], 0
push 0x46698c
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 0xd
call fcn.00401680
push edi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x70]
mov ecx, ebx
push eax
lea edx, [ebp - 0x40]
call fcn.004117c0
mov byte [ebp - 4], 0xd
add esp, 0xc
mov edx, dword [ebp - 0x2c]
mov esi, eax
cmp edx, 8
jb 0x41044b
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410441
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41076c
push edx
push ecx
call fcn.0041fbbf
add esp, 8
xor eax, eax
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x41049d
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410493
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41076c
push edx
push ecx
call fcn.0041fbbf
add esp, 8
test esi, esi
je 0x41060e
lea eax, [ebp - 0x58]
push str._EAC_Setup___Info__Retrying_the_service_creation_once_more_in_2_seconds..
push eax
call fcn.004123f0
add esp, 8
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
jb 0x4104c2
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x410503
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4104f9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410771
push edx
push ecx
call fcn.0041fbbf
add esp, 8
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x28], 0
push 0x47
xor eax, eax
mov dword [ebp - 0x18], 0
push str.Provides_integrated_security_and_services_for_online_multiplayer_games.
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 5
call fcn.00401680
mov dword [ebp - 0x40], 0
push 0xd
xor eax, eax
mov dword [ebp - 0x30], 0
push 0x46698c
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 0x11
call fcn.00401680
push edi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x13
push eax
lea eax, [ebp - 0x70]
mov ecx, ebx
push eax
lea edx, [ebp - 0x40]
call fcn.004117c0
mov edx, dword [ebp - 0x2c]
add esp, 0xc
mov esi, eax
cmp edx, 8
jb 0x4105c0
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4105b6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410776
push edx
push ecx
call fcn.0041fbbf
add esp, 8
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x41060e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410604
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410776
push edx
push ecx
call fcn.0041fbbf
add esp, 8
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x410671
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x58]
push str.OpenSCManager_failed_with__i
push eax
call fcn.004123f0
add esp, 0xc
mov ecx, edi
push eax
call fcn.00403700
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x410671
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410667
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41077b
push edx
push ecx
call fcn.0041fbbf
add esp, 8
mov ebx, dword [ebp - 0x74]
cmp ebx, 8
jb 0x4106ae
mov ecx, dword [ebp - 0x88]
lea ebx, [ebx*2 + 2]
mov eax, ecx
cmp ebx, 0x1000
jb 0x4106a4
mov ecx, dword [ecx - 4]
add ebx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410780
push ebx
push ecx
call fcn.0041fbbf
add esp, 8
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x4106e8
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4106de
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410780
push edx
push ecx
call fcn.0041fbbf
add esp, 8
mov edx, dword [ebp - 0x8c]
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
cmp edx, 8
jb 0x410738
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41072e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410780
push edx
push ecx
call fcn.0041fbbf
add esp, 8
mov eax, esi
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.0041fb7c
mov esp, ebp
pop ebp
ret 8
call fcn.00439d3f
call fcn.00439d3f
call fcn.00439d3f
call fcn.00439d3f
call fcn.00439d3f
call fcn.00439d3f
call fcn.00439d3f
call fcn.00439d3f
call fcn.00439d3f
int3