Function at 0x4127c0
Capabilities:
Accept command line arguments
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x456350
mov eax, dword fs:[0]
push eax
sub esp, 0x190
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 ecx, dword [ebp + 0x10]
mov dword [ebp - 0x188], ecx
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x19c]
xor edi, edi
mov dword [ebp - 0x6c], 0
push eax
mov dword [ebp - 0x68], 7
mov ebx, 1
mov dword [ebp - 0x180], edi
mov dword [ebp - 0x19c], 0x46698c
mov dword [ebp - 0x198], 0x412530
mov dword [ebp - 0x194], edi
mov dword [ebp - 0x190], edi
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x4131df
mov eax, dword [ebp - 0x188]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test eax, eax
je 0x412df1
cmp word [eax], di
je 0x412df1
lea ecx, [ebp - 0x18c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, eax
test ecx, ecx
jne 0x4128f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push str._EAC_Setup___Error__CommandLineToArgvW_failed_with__i.
push eax
call fcn.00412330
add esp, 0xc
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
jb 0x4128b4
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4128ef
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4128e5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413235
push edx
push ecx
call fcn.0041fbbf
add esp, 8
mov edi, ebx
jmp 0x4131df
mov eax, dword [ebp - 0x18c]
mov dword [ebp - 0x48], ecx
mov ecx, 0x2d
mov word [ebp - 0x38], cx
xor ecx, ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x64], 0x465ea8
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], 0xffffffff
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x54], edi
mov word [ebp - 0x34], cx
mov dword [ebp - 0x60], 0x10
mov dword [ebp - 0x3c], ecx
cmp eax, 0x32
jle 0x412952
shl eax, 2
push eax
call fcn.0043ca66
add esp, 4
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x64]
call fcn.00413290
test al, al
je 0x412d8d
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x412e66
mov eax, dword [ebp - 0x58]
dec eax
cmp eax, 8
ja case.default.0x41297a
jmp dword [eax*4 + 0x413240]
lea eax, [ebp - 0x28]
push str._EAC_Setup__Handling_install__install_
push eax
call fcn.00412330
add esp, 8
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
jb 0x41299e
mov eax, dword [ebp - 0x28]
push eax
call esi
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4129d5
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4129cb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413235
push edx
push ecx
call fcn.0041fbbf
add esp, 8
mov dword [ebp - 0x17c], 1
lea edx, [ebp - 0x17c]
lea ecx, [ebp - 0x180]
call fcn.00412720
test al, al
je 0x412e8d
push dword [ebp - 0x40]
call fcn.0043d378
add esp, 4
mov dword [ebp - 0x17c], eax
jmp 0x412d77
lea eax, [ebp - 0x28]
push str._EAC_Setup__Handling_uninstall__uninstall_
push eax
call fcn.00412330
add esp, 8
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
jb 0x412a2b
mov eax, dword [ebp - 0x28]
push eax
call esi
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x412a62
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412a58
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413235
push edx
push ecx
call fcn.0041fbbf
add esp, 8
mov dword [ebp - 0x17c], 2
jmp 0x4129df
lea eax, [ebp - 0x28]
push str._EAC_Setup__Handling_VerifyInstallation___verify_installation_
push eax
call fcn.00412330
add esp, 8
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
jb 0x412a8e
mov eax, dword [ebp - 0x28]
push eax
call esi
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x412ac5
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412abb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413235
push edx
push ecx
call fcn.0041fbbf
add esp, 8
mov dword [ebp - 0x17c], 4
lea edx, [ebp - 0x17c]
lea ecx, [ebp - 0x180]
call fcn.00412720
test al, al
je 0x412e8d
push dword [ebp - 0x40]
call fcn.0043d378
add esp, 4
mov dword [ebp - 0x17c], eax
and ebx, 0xfffffffe
jmp 0x412d77
lea eax, [ebp - 0x28]
push str._EAC_Setup__Handling_VerifyAndInstall___verify_and_install_
push eax
call fcn.00412330
add esp, 8
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
jb 0x412b1e
mov eax, dword [ebp - 0x28]
push eax
call esi
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x412b55
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412b4b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413235
push edx
push ecx
call fcn.0041fbbf
add esp, 8
mov dword [ebp - 0x17c], 5
jmp 0x412acf
lea eax, [ebp - 0x28]
push str._EAC_Setup__Handling_SelfUpdate___self_update_
push eax
call fcn.00412330
add esp, 8
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
jb 0x412b81
mov eax, dword [ebp - 0x28]
push eax
call esi
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x412bb8
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412bae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413235
push edx
push ecx
call fcn.0041fbbf
add esp, 8
mov dword [ebp - 0x184], 6
lea edx, [ebp - 0x184]
lea ecx, [ebp - 0x180]
call fcn.00412720
test al, al
je 0x412e8d
and ebx, 0xfffffffe
or ebx, 2
jmp 0x412d77
lea eax, [ebp - 0x28]
push str._EAC_Setup__Handling_FullReset__qa_factory_reset_
push eax
call fcn.00412330
add esp, 8
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
jb 0x412c03
mov eax, dword [ebp - 0x28]
push eax
call esi
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x412c3a
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412c30
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413235
push edx
push ecx
call fcn.0041fbbf
add esp, 8
mov dword [ebp - 0x184], 2
jmp 0x412bc2
lea eax, [ebp - 0x28]
push str._EAC_Setup__Handling_Locale___locale_
push eax
call fcn.00412330
add esp, 8
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
jb 0x412c66
mov eax, dword [ebp - 0x28]
push eax
call esi
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x412c9d
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412c93
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413235
push edx
push ecx
call fcn.0041fbbf
add esp, 8
mov edx, dword [ebp - 0x40]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412ca5
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x7c]
call fcn.00401680
jmp 0x412d77
lea eax, [ebp - 0x28]
push str._EAC_Setup__Handling_console___console_
push eax
call fcn.00412330
add esp, 8
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
jb 0x412ce0
mov eax, dword [ebp - 0x28]
push eax
call esi
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x412af9
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412d11
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413235
push edx
push ecx
call fcn.0041fbbf
add esp, 8
and ebx, 0xfffffffe
jmp 0x412d77
lea eax, [ebp - 0x28]
push str._EAC_Setup__Handling_CloseOnSuccess___success_close_
push eax
call fcn.00412330
add esp, 8
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
jb 0x412d3d
mov eax, dword [ebp - 0x28]
push eax
call esi
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x412d74
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412d6a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413235
push edx
push ecx
call fcn.0041fbbf
add esp, 8
or ebx, 4
lea ecx, [ebp - 0x64]
call fcn.00413290
test al, al
jne 0x412962
mov edi, dword [ebp - 0x180]
lea eax, [ebp - 0x28]
push str._EAC_Setup__Arg_handling_done.
push eax
call fcn.00412330
add esp, 8
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
jb 0x412daa
mov eax, dword [ebp - 0x28]
push eax
call esi
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x412de1
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412dd7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41323a
push edx
push ecx
call fcn.0041fbbf
add esp, 8
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x412df1
push eax
call fcn.0043ca4b
add esp, 4
call fcn.0040fe20
test al, al
jne 0x412efb
test bl, 1
jne case.0x412e13.1
lea eax, [edi - 1]
cmp eax, 5
ja case.0x412e13.1
jmp dword [eax*4 + 0x413264]
lea eax, [ebp - 0x28]
push str._EAC_Setup___Error__Unrecognized_command_line_parameters_
push eax
call fcn.00412330
add esp, 8
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
jb 0x412e37
mov eax, dword [ebp - 0x28]
push eax
call esi
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x412e8d
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412e83
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41323a
jmp 0x412e83
push eax
lea eax, [ebp - 0x28]
push str._EAC_Setup___Error__Malformed_command_line_parameters___i__
push eax
call fcn.00412330
add esp, 0xc
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
jb 0x412e37
jmp 0x412e34
push edx
push ecx
call fcn.0041fbbf
add esp, 8
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x412e9d
push eax
call fcn.0043ca4b
add esp, 4
mov edi, 1
jmp 0x4131df
lea eax, [ebp - 0x28]
push str._EAC_Setup___Info__Launched_without_admin_privileges_but_performing_an_action_that_wont_require_such.
push eax
call fcn.00412330
add esp, 8
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
jb 0x412ec4
mov eax, dword [ebp - 0x28]
push eax
call esi
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x412efb
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412ef1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41323a
push edx
push ecx
call fcn.0041fbbf
add esp, 8
mov ecx, dword [ebp - 0x17c]
test bl, 3
jne 0x41302f
test ecx, ecx
jne 0x41302f
lea eax, [ebp - 0x28]
push str._EAC_Setup___Error__Command_line_is_missing_the_operation_with_a_valid_game_id_
push eax
call fcn.00412330
add esp, 8
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
jb 0x412f2f
mov eax, dword [ebp - 0x28]
push eax
call esi
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x412f66
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412f5c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41323a
push edx
push ecx
call fcn.0041fbbf
add esp, 8
mov edi, 1
jmp 0x4131df
lea eax, [ebp - 0x28]
push str._EAC_Setup___Info__Launched_without_admin_privileges_to_perform_an_action_requiring_such__relaunching.
push eax
call fcn.00412330
add esp, 8
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
jb 0x412f8d
mov eax, dword [ebp - 0x28]
push eax
call esi
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x412fc4
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412fba
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41323a
push edx
push ecx
call fcn.0041fbbf
add esp, 8
mov ecx, dword [ebp - 0x188]
call fcn.0040fad0
mov edi, eax
lea eax, [ebp - 0x28]
push edi
push str._EAC_Setup___Info__Operation_completed_with:__i.
push eax
call fcn.00412330
add esp, 0xc
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
jb 0x412fef
mov eax, dword [ebp - 0x28]
push eax
call esi
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4131df
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x413020
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41323a
push edx
push ecx
call fcn.0041fbbf
add esp, 8
jmp 0x4131df
mov eax, dword [ebp + 8]
mov dword [ebp - 0x178], eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x174], ecx
lea ecx, [ebp - 0x170]
push eax
call fcn.00403820
mov dword [ebp - 0x154], 1
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 7
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0xf
mov dword [ebp - 0xf8], 0
lea eax, [ebp - 0xd8]
mov dword [ebp - 4], 0xffffffff
push eax
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0xf
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x30
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0
call fcn.0041fb8a
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0xf
mov dword [ebp - 0x9c], 0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x178]
push ebx
fld1
mov ecx, eax
push edi
fstp dword [ebp - 0x118]
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0xf
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 8
mov byte [ebp - 0x11c], 0
mov byte [ebp - 0x114], 0
mov dword [0x47169c], eax
call fcn.0040d4e0
lea ecx, [ebp - 0x178]
mov edi, eax
call fcn.0040d340
mov edx, dword [ebp - 0x68]
cmp edx, 8
jb 0x413215
mov ecx, dword [ebp - 0x7c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41320b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41323a
push edx
push ecx
call fcn.0041fbbf
add esp, 8
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.0041fb7c
mov esp, ebp
pop ebp
ret 0x10
call fcn.00439d3f
call fcn.00439d3f
nop
sub dword [ecx], 0x2a0e0041
inc ecx
add dh, ah
sub eax, dword [ecx]
dec ecx
sub al, 65
add bl, al
sub al, 0x41
add byte [eax], ah
sub eax, 0x2a710041
inc ecx
add byte [ecx], al
sub eax, dword [ecx]
sub eax, dword fs:[ecx]
jo 4272789
inc ecx
add byte [eax + 0x2f], dh
inc ecx
add byte [eax + 0x2f], dh
inc ecx
add byte [edi - 0x58ffbed2], ah
inc ecx
add byte [eax + 0x2f], dh
inc ecx
add ah, cl
int3
adc byte [ebx + 0x56], dl