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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x47b008]
xor eax, esp
mov dword [esp + 0x128], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov dword [esp + 8], eax
xor esi, esi
xor eax, eax
mov dword [esp + 0x84], esi
push edi
mov word [esp + 0x78], ax
xor edi, edi
mov dword [esp + 0x1c], eax
lea ebx, [esi + 1]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x90], 7
mov dword [esp + 0x18], 0x46e75c
mov dword [esp + 0x1c], 0x412290
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x4128ae
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x10]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, eax
test ecx, ecx
jne 0x412503
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x28]
push str._EAC_Setup___Error__CommandLineToArgvW_failed_with__i.
push eax
call fcn.00411d70
add esp, 0xc
lea eax, [esp + 0x24]
cmp dword [esp + 0x38], 0x10
jb 0x4124ec
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x24]
call fcn.00401680
mov esi, ebx
jmp 0x4128ae
mov eax, dword [esp + 0x10]
mov dword [esp + 0x58], ecx
mov ecx, 0x2d
mov word [esp + 0x68], cx
xor ecx, ecx
mov dword [esp + 0x74], esi
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x3c], 0x46cce0
mov dword [esp + 0x70], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x4c], esi
mov word [esp + 0x6c], cx
mov dword [esp + 0x40], 0x10
mov dword [esp + 0x64], ecx
cmp eax, 0x32
jle 0x41256d
shl eax, 2
push eax
call fcn.0043f7f7
add esp, 4
mov dword [esp + 0x74], eax
lea ecx, [esp + 0x3c]
call fcn.004128f0
test al, al
je 0x4125fa
mov edi, edi
cmp dword [esp + 0x70], 0
jne 0x412667
mov eax, dword [esp + 0x48]
dec eax
cmp eax, 5
ja case.default.0x412599
jmp dword [eax*4 + 0x4128d0]
push dword [esp + 0x60]
mov edi, 1
call fcn.00440512
add esp, 4
mov esi, eax
jmp 0x4125ed
push dword [esp + 0x60]
mov edi, 2
call fcn.00440512
add esp, 4
mov esi, eax
jmp 0x4125ed
mov edi, 2
and ebx, 0xfffffffe
or ebx, edi
jmp 0x4125ed
push dword [esp + 0x60]
lea ecx, [esp + 0x7c]
call fcn.00401590
jmp 0x4125ed
and ebx, 0xfffffffe
jmp 0x4125ed
or ebx, 4
lea ecx, [esp + 0x3c]
call fcn.004128f0
test al, al
jne 0x412580
test bl, 3
jne 0x4126a2
test esi, esi
jne 0x4126a2
mov edx, str._EAC_Setup___Error__Command_line_is_missing_the_operation_with_a_valid_game_id_
lea ecx, [esp + 0x24]
call fcn.0040dff0
lea ecx, [esp + 0x24]
call fcn.00401680
mov esi, 1
jmp 0x41289d
lea eax, [esp + 0x24]
push str._EAC_Setup___Error__Unrecognized_command_line_parameters_
push eax
call fcn.00411d70
add esp, 8
lea eax, [esp + 0x24]
cmp dword [esp + 0x38], 0x10
jb 0x41264d
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x24]
call fcn.00401680
mov esi, 1
jmp 0x41289d
lea eax, [esp + 0x24]
push str._EAC_Setup___Error__Malformed_command_line_parameters_
push eax
call fcn.00411d70
add esp, 8
lea eax, [esp + 0x24]
cmp dword [esp + 0x38], 0x10
jb 0x412688
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x24]
call fcn.00401680
mov esi, 1
jmp 0x41289d
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x98]
mov dword [esp + 0x90], eax
lea eax, [esp + 0x78]
push eax
mov dword [esp + 0x98], esi
call fcn.0040a660
xor eax, eax
mov dword [esp + 0xb4], 1
push 0x28
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], 7
mov word [esp + 0xd8], ax
mov dword [esp + 0x100], eax
call fcn.0042208d
mov esi, eax
add esp, 4
xor eax, eax
mov dword [esi + 4], eax
lea ecx, [esi + 4]
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi], 0x46dc64
call sym.EasyAntiCheat_Setup.exe_public:_void___thiscall_libconfig::Config::constructor_void_
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esp + 0x90]
fld1
push ebx
push edi
mov ecx, eax
mov dword [esp + 0x100], esi
fstp dword [esp + 0xf8]
mov dword [esp + 0x118], 0
mov dword [esp + 0x11c], 0xf
mov byte [esp + 0x108], 0
mov dword [esp + 0x130], 0
mov dword [esp + 0x134], 0xf
mov byte [esp + 0x120], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 8
mov byte [esp + 0xf4], 0
mov byte [esp + 0xfc], 0
mov dword [0x47da80], eax
call fcn.0040e5a0
mov esi, eax
mov eax, dword [esp + 0xcc]
test eax, eax
je 0x41282e
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0xcc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0xcc], 0
mov eax, dword [esp + 0xc4]
test eax, eax
je 0x412840
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x412852
push eax
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
lea ecx, [esp + 0x118]
mov dword [0x47da80], 0
call fcn.00401680
lea ecx, [esp + 0x100]
call fcn.00401680
mov ecx, dword [esp + 0xf8]
test ecx, ecx
je 0x412885
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [esp + 0xd4]
call fcn.00401520
lea ecx, [esp + 0x98]
call fcn.00401520
mov eax, dword [esp + 0x74]
test eax, eax
je 0x4128ae
push eax
call fcn.0043f527
add esp, 4
lea ecx, [esp + 0x78]
call fcn.00401520
mov ecx, dword [esp + 0x134]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042207c
mov esp, ebp
pop ebp
ret 0x10