Function at 0x409d90
Capabilities:
Accept command line arguments
Acquire debug privileges
Create process on windows
Create process suspended
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426eec
mov eax, dword fs:[0]
push eax
sub esp, 0x318
mov eax, dword [0x43701c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x2a8]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push 1
push str.SeDebugPrivilege
mov ecx, dword [ebp - 0x2a8]
push ecx
call fcn.00405100
add esp, 0xc
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x29c], 0
lea edx, [ebp - 0x298]
push edx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x294], 0
lea ecx, [ebp - 0x230]
call fcn.00403290
mov dword [ebp - 4], 0
cmp dword [ebp - 0x298], 1
jne 0x409f7f
push str.ConfigConfig.ini
push 0
lea eax, [ebp - 0x278]
push eax
call fcn.00408bc0
add esp, 8
mov dword [ebp - 0x2ac], eax
mov ecx, dword [ebp - 0x2ac]
mov dword [ebp - 0x2b0], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x2b0]
push edx
lea eax, [ebp - 0x260]
push eax
call fcn.00401600
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x278]
call fcn.004040f0
push 0x208
push 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.0040da40
add esp, 0xc
lea ecx, [ebp - 0x260]
call fcn.00407ab0
push eax
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0x428430
push str.riotgame
push str.platform
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x44
push 0
lea eax, [ebp - 0x324]
push eax
call fcn.0040da40
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x2e0], ecx
mov dword [ebp - 0x2dc], ecx
mov dword [ebp - 0x2d8], ecx
mov dword [ebp - 0x2d4], ecx
lea edx, [ebp - 0x2e0]
push edx
lea eax, [ebp - 0x324]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x409f62
mov dword [ebp - 0x2b4], 3
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x260]
call fcn.004040f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.004040f0
mov eax, dword [ebp - 0x2b4]
jmp 0x40a199
mov edx, dword [ebp - 0x2d8]
mov dword [ebp - 0x294], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x260]
call fcn.004040f0
jmp 0x409fc4
cmp dword [ebp - 0x298], 3
jl 0x409fc4
mov eax, 4
shl eax, 0
mov ecx, dword [ebp - 0x29c]
mov edx, dword [ecx + eax]
push edx
call fcn.00410ea7
add esp, 4
mov dword [ebp - 0x294], eax
mov eax, 4
shl eax, 1
mov ecx, dword [ebp - 0x29c]
mov edx, dword [ecx + eax]
push edx
lea ecx, [ebp - 0x230]
call fcn.004047a0
push str._battleex.dll
push 0
lea eax, [ebp - 0x290]
push eax
call fcn.00408bc0
add esp, 8
mov dword [ebp - 0x2b8], eax
mov ecx, dword [ebp - 0x2b8]
mov dword [ebp - 0x2bc], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x2bc]
push edx
lea eax, [ebp - 0x248]
push eax
call fcn.00401600
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x290]
call fcn.004040f0
lea ecx, [ebp - 0x230]
call fcn.00408950
movzx ecx, al
test ecx, ecx
jne 0x40a08f
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 0x2a0], 0x1770
mov edx, dword [ebp - 0x2a0]
sub edx, 1
mov dword [ebp - 0x2a0], edx
je 0x40a08f
mov eax, dword [ebp - 0x294]
push eax
lea ecx, [ebp - 0x2a4]
push ecx
lea ecx, [ebp - 0x230]
call fcn.00407ab0
push eax
call fcn.00408c90
add esp, 0xc
cmp dword [ebp - 0x2a4], 0
je 0x40a085
mov edx, dword [ebp - 0x2a4]
mov dword [ebp - 0x294], edx
jmp 0x40a08f
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40a03b
mov eax, dword [ebp - 0x294]
push eax
call fcn.00409570
add esp, 4
test eax, eax
je 0x40a137
push 0x1388
lea ecx, [ebp - 0x248]
push ecx
call fcn.00408ed0
add esp, 8
test eax, eax
jne 0x40a102
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c0], eax
mov edx, dword [ebp - 0x2c0]
mov dword [ebp - 0x2c4], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.004040f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.004040f0
mov eax, dword [ebp - 0x2c4]
jmp 0x40a199
mov dword [ebp - 0x2c8], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.004040f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.004040f0
mov eax, dword [ebp - 0x2c8]
jmp 0x40a199
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2cc], eax
mov eax, dword [ebp - 0x2cc]
mov dword [ebp - 0x2d0], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.004040f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.004040f0
mov eax, dword [ebp - 0x2d0]
jmp 0x40a199
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040c433
mov esp, ebp
pop ebp
ret 0x10