Function at 0x40d7f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455bbd
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x46f068]
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 dword [ebp - 0x110], esi
xor eax, eax
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 7
mov word [ebp - 0xf0], ax
push fcn.00401290
push 0x403290
push 2
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc0]
push 0x18
push eax
call fcn.00435458
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 1
call fcn.0040fc70
test al, al
jne 0x40d891
push fcn.00401290
push 2
push 0x18
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 0
push eax
call fcn.0043535a
jmp 0x40d97e
lea eax, [ebp - 0xa8]
xor dl, dl
push eax
xor ecx, ecx
call fcn.0041f550
add esp, 4
test al, al
je 0x40d873
lea esi, [ebp - 0x78]
xor ebx, ebx
mov dword [ebp - 0x114], esi
lea edi, [ebp - 0xc0]
lea esp, [esp]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x40d8ca
mov eax, dword [edi]
push 0
push 0x80
push 3
push 0
push 7
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10c], eax
cmp eax, 0xffffffff
je 0x40d95f
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
push dword [ebp - 0x10c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x40d95f
mov esi, dword [ebp - 0x114]
inc ebx
add esi, 0x34
add edi, 0x18
mov dword [ebp - 0x114], esi
cmp ebx, 2
jb 0x40d8c0
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0x28]
jne 0x40d93c
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x18]
jne 0x40d93c
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x14]
jne 0x40d93c
mov bl, 1
jmp 0x40d93e
xor bl, bl
push fcn.00401290
push 2
push 0x18
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 0
push eax
call fcn.0043535a
mov esi, dword [ebp - 0x110]
jmp 0x40d980
push fcn.00401290
push 2
push 0x18
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 0
push eax
call fcn.0043535a
mov esi, dword [ebp - 0x110]
xor bl, bl
mov byte [esi + 0x64], bl
mov eax, 0x4665bc
test bl, bl
jne 0x40d991
mov eax, 0x4665c4
push eax
lea eax, [ebp - 0xa8]
push str._EAC_Setup___Info__Started_from_service_directory:__s.
push eax
call fcn.004121b0
add esp, 0xc
lea eax, [ebp - 0xa8]
cmp dword [ebp - 0x94], 8
jb 0x40d9bb
mov eax, dword [ebp - 0xa8]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push eax
call edi
mov edx, dword [ebp - 0x94]
cmp edx, 8
jb 0x40da04
mov ecx, dword [ebp - 0xa8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d9fa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e17f
push edx
push ecx
call fcn.00434e86
add esp, 8
mov ecx, dword [ebp + 0xc]
test cl, 1
je 0x40da2d
test cl, 4
je 0x40da15
mov byte [esi + 0x5c], 1
lea eax, [ebp - 0xf0]
mov ecx, esi
push eax
push dword [ebp + 8]
call fcn.0040e710
mov ebx, eax
jmp 0x40dd80
mov eax, dword [ebp + 8]
dec eax
cmp eax, 5
ja case.0x40da3a.3
jmp dword [eax*4 + 0x40e1a0]
lea eax, [ebp - 0xf0]
mov ecx, esi
push eax
push dword [esi + 4]
call fcn.00410060
mov ebx, eax
jmp 0x40dd80
lea eax, [ebp - 0xf0]
test cl, 3
push eax
setne al
mov ecx, esi
movzx eax, al
push eax
push 0
push dword [esi + 4]
call fcn.004107e0
mov ebx, eax
jmp 0x40dd80
xor eax, eax
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 7
mov word [ebp - 0xd8], ax
mov byte [ebp - 4], 2
lea eax, [ebp - 0xf0]
cmp dword [ebp - 0xdc], 8
jb 0x40dab3
mov eax, dword [ebp - 0xf0]
xor ecx, ecx
mov dword [ebp - 0xe0], 0
mov word [eax], cx
mov dl, 1
lea eax, [ebp - 0xd8]
push eax
call fcn.0041f550
add esp, 4
test al, al
jne 0x40dbe5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xa8]
push str.GetServiceImagePathByType_failed_with__i
push eax
call fcn.004121b0
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0xf0]
cmp eax, esi
je 0x40db51
mov ecx, eax
call fcn.00401290
mov ecx, dword [esi]
mov dword [ebp - 0xf0], ecx
mov ecx, dword [esi + 4]
mov dword [ebp - 0xec], ecx
mov eax, dword [esi + 8]
mov dword [ebp - 0xe8], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0xe4], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0xe0], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0xdc], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x94]
cmp edx, 8
jb 0x40db91
mov ecx, dword [ebp - 0xa8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40db87
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e184
push edx
push ecx
call fcn.00434e86
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0xc4]
cmp edx, 8
jb 0x40dbd5
mov ecx, dword [ebp - 0xd8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40dbcb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e189
push edx
push ecx
call fcn.00434e86
add esp, 8
mov esi, dword [ebp - 0x110]
mov ebx, 4
jmp 0x40dd8f
cmp byte [esi + 0x64], 0
jne 0x40dc4d
lea edx, [ebp - 0xf0]
lea ecx, [ebp - 0xd8]
call fcn.00411330
test al, al
jne 0x40dc4d
mov byte [ebp - 4], al
mov edx, dword [ebp - 0xc4]
cmp edx, 8
jb 0x40dc43
mov ecx, dword [ebp - 0xd8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40dc39
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e18e
push edx
push ecx
call fcn.00434e86
add esp, 8
mov ebx, 4
jmp 0x40dd8f
mov edx, dword [ebp - 0xc4]
cmp edx, 8
jb 0x40dc8d
mov ecx, dword [ebp - 0xd8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40dc83
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e193
push edx
push ecx
call fcn.00434e86
add esp, 8
xor ebx, ebx
jmp 0x40e123
lea eax, [ebp - 0xf0]
push eax
push dword [esi + 4]
call fcn.00411050
mov ebx, eax
jmp 0x40dd80
lea eax, [ebp - 0xf0]
push eax
push dword [esi + 4]
call fcn.00411050
mov ebx, eax
test ebx, ebx
je 0x40dd64
call fcn.0040ff60
test al, al
jne 0x40dd64
push dword [esi + 4]
lea eax, [ebp - 0x90]
push str.install__i__console
push 0x40
push eax
call fcn.00406f50
add esp, 0x10
lea ecx, [ebp - 0x90]
call fcn.0040fd20
test eax, eax
jne 0x40dcff
xor ebx, ebx
jmp 0x40e123
push eax
lea eax, [ebp - 0xa8]
push str._EAC_Setup___Error__Elevated_process_failed_in_installing_the_service_post_verification__code:__i.
push eax
call fcn.004121b0
add esp, 0xc
lea eax, [ebp - 0xa8]
cmp dword [ebp - 0x94], 8
jb 0x40dd29
mov eax, dword [ebp - 0xa8]
push eax
call edi
mov edx, dword [ebp - 0x94]
cmp edx, 8
jb 0x40dd80
mov ecx, dword [ebp - 0xa8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40dd76
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e198
jmp 0x40dd76
mov edx, str._EAC_Setup___Error__Game_already_installed__no_installation_required__and_as_such_no_elevation.
lea ecx, [ebp - 0xa8]
call fcn.00411d10
jmp 0x40dd2c
push edx
push ecx
call fcn.00434e86
add esp, 8
test ebx, ebx
je 0x40e123
jmp 0x40dd8f
mov ebx, 1
cmp dword [ebp - 0xdc], 8
lea eax, [ebp - 0xf0]
jb 0x40dda4
mov eax, dword [ebp - 0xf0]
push eax
push ebx
lea eax, [ebp - 0xa8]
push str._EAC_Setup___Error__Result:__i_ErrorMsg:__s.
push eax
call fcn.004121b0
add esp, 0x10
lea eax, [ebp - 0xa8]
cmp dword [ebp - 0x94], 8
jb 0x40ddcf
mov eax, dword [ebp - 0xa8]
push eax
call edi
mov edx, dword [ebp - 0x94]
cmp edx, 8
jb 0x40de12
mov ecx, dword [ebp - 0xa8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40de08
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e198
push edx
push ecx
call fcn.00434e86
add esp, 8
cmp ebx, 7
jne 0x40e123
push 6
push 0x465994
lea ecx, [ebp - 0x108]
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0xf
mov byte [ebp - 0x108], 0
call fcn.00401590
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa8]
push 0x12
push str.setup.error_prefix
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0xf
mov byte [ebp - 0xa8], 0
call fcn.00401590
sub esp, 0x18
mov byte [ebp - 4], 4
lea eax, [ebp - 0xa8]
mov ecx, esp
push eax
call fcn.004035c0
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0xd8]
push eax
lea ecx, [esi + 0x68]
call fcn.00402ea0
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x94]
cmp edx, 0x10
jb 0x40dee2
mov ecx, dword [ebp - 0xa8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ded8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e198
push edx
push ecx
call fcn.00434e86
add esp, 8
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0xf4]
cmp edx, 0x10
jb 0x40df20
mov ecx, dword [ebp - 0x108]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40df16
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e198
push edx
push ecx
call fcn.00434e86
add esp, 8
mov ecx, dword [ebp - 0xc8]
mov edx, dword [ebp - 0xc4]
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0xf
mov byte [ebp - 0x108], 0
test ecx, ecx
je 0x40dff0
lea eax, [ebp - 0xd8]
cmp edx, 8
jb 0x40df60
mov eax, dword [ebp - 0xd8]
cmp word [eax + ecx*2 - 2], 0x2e
jne 0x40df85
lea eax, [ecx - 1]
push 0
push eax
lea ecx, [ebp - 0xd8]
call fcn.004011f0
mov edx, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0xc8]
test ecx, ecx
je 0x40dff0
lea eax, [ebp - 0xd8]
cmp edx, 8
jb 0x40df9a
mov eax, dword [ebp - 0xd8]
cmp word [eax + ecx*2 - 2], 0x3a
je 0x40dff0
cmp ecx, edx
jae 0x40dfc9
lea eax, [ecx + 1]
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0xd8]
cmp edx, 8
jb 0x40dfc0
mov eax, dword [ebp - 0xd8]
mov dword [eax + ecx*2], 0x3a
jmp 0x40dfe4
push 0x3a
mov byte [ebp - 0x10c], 0
push dword [ebp - 0x10c]
push ecx
lea ecx, [ebp - 0xd8]
call fcn.00403ce0
mov ecx, dword [ebp - 0xc8]
mov edx, dword [ebp - 0xc4]
cmp ecx, edx
jae 0x40e017
lea eax, [ecx + 1]
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0xd8]
cmp edx, 8
jb 0x40e00e
mov eax, dword [ebp - 0xd8]
mov dword [eax + ecx*2], 0x20
jmp 0x40e032
push 0x20
mov byte [ebp - 0x10c], 0
push dword [ebp - 0x10c]
push ecx
lea ecx, [ebp - 0xd8]
call fcn.00403ce0
cmp dword [ebp - 0xdc], 8
lea eax, [ebp - 0xf0]
jb 0x40e047
mov eax, dword [ebp - 0xf0]
push dword [ebp - 0xe0]
lea ecx, [ebp - 0xd8]
push eax
call fcn.004038a0
mov ecx, dword [ebp - 0xc4]
lea eax, [ebp - 0xd8]
mov edx, dword [ebp - 0xd8]
cmp ecx, 8
jb 0x40e072
mov eax, edx
mov esi, dword [ebp - 0xc8]
cmp word [eax + esi*2 - 2], 0x21
je 0x40e0ca
cmp esi, ecx
jae 0x40e0a3
lea eax, [esi + 1]
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0xd8]
cmp ecx, 8
jb 0x40e09a
mov eax, edx
mov dword [eax + esi*2], 0x21
jmp 0x40e0be
push 0x21
mov byte [ebp - 0x10c], 0
push dword [ebp - 0x10c]
push ecx
lea ecx, [ebp - 0xd8]
call fcn.00403ce0
mov edx, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xc4]
lea eax, [ebp - 0xd8]
cmp ecx, 8
jb 0x40e0d7
mov eax, edx
push 0x10
push str.EAC_Setup
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [ebp - 0xc4]
cmp edx, 8
jb 0x40e123
mov ecx, dword [ebp - 0xd8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e119
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e198
push edx
push ecx
call fcn.00434e86
add esp, 8
mov edx, dword [ebp - 0xdc]
cmp edx, 8
jb 0x40e15f
mov ecx, dword [ebp - 0xf0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e155
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e198
push edx
push ecx
call fcn.00434e86
add esp, 8
mov eax, ebx
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.00434e45
mov esp, ebp
pop ebp
ret 8
call fcn.00439dba
call fcn.00439dba
call fcn.00439dba
call fcn.00439dba
call fcn.00439dba
call fcn.00439dba
lea ecx, [ecx]
inc ecx
fiadd dword [eax]
pop ecx
fiadd dword [eax]
mov bl, ch
inc eax
add byte [esp + ebx*8 - 0x2355ffc0], dl
inc eax
add byte [ebp - 0x26], bh
inc eax
add ah, cl
int3