Function at 0x457a80
Capabilities:
Accept command line arguments
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56acb2
mov eax, dword fs:[0]
push eax
mov eax, 0x1838
call fcn.00472b40
mov eax, dword [0x5c524c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x1840]
call fcn.0050e8f0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [ebp - 0x1800], 0
mov ecx, edx
mov dword [ebp - 0x17fc], 7
xor eax, eax
mov word [ebp - 0x1810], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457af0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1810]
call fcn.0041cb00
lea eax, [ebp - 0x1810]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x1840]
call fcn.0050ef70
mov edx, dword [ebp - 0x17fc]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x457b66
mov ecx, dword [ebp - 0x1810]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x457b5c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x457f04
push edx
push ecx
call fcn.004727ef
add esp, 8
lea eax, [ebp - 0x17f8]
xor bh, bh
push eax
call fcn.00456440
push 0xfd0
lea eax, [ebp - 0x17e0]
push 0
push eax
call fcn.0051e3d0
add esp, 0x10
lea eax, [ebp - 0x17f8]
cmp dword [ebp - 0x17e4], 8
cmovae eax, dword [ebp - 0x17f8]
push eax
push 0x7e8
lea eax, [ebp - 0x17e0]
push eax
push 0x5798f8
push dword [0x5c5200]
push dword [0x5c51fc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea esi, [ebp - 0x17e0]
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x457bd0
mov edx, dword [ebp - 0x17e4]
sub esi, ecx
sar esi, 1
cmp edx, 8
jb 0x457c1f
mov ecx, dword [ebp - 0x17f8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x457c15
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x457f09
push edx
push ecx
call fcn.004727ef
add esp, 8
test esi, esi
jne 0x457edc
lea eax, [ebp - 0x17f8]
push eax
call fcn.004559c0
add esp, 4
lea eax, [ebp - 0x17f8]
cmp dword [ebp - 0x17e4], 8
cmovae eax, dword [ebp - 0x17f8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x17e4]
cmp eax, 1
sete bl
cmp edx, 8
jb 0x457c97
mov ecx, dword [ebp - 0x17f8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x457c8d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x457f0e
push edx
push ecx
call fcn.004727ef
add esp, 8
test bl, bl
je 0x457edc
lea eax, [ebp - 0x17f8]
push eax
call fcn.004559c0
add esp, 4
cmp dword [ebp - 0x17e4], 8
lea eax, [ebp - 0x17f8]
lea ecx, [ebp - 0x1844]
mov byte [ebp - 4], 2
cmovae eax, dword [ebp - 0x17f8]
push eax
call fcn.00406a80
lea eax, [ebp - 0x1844]
mov byte [ebp - 4], 3
push eax
call fcn.00466240
mov edx, dword [ebp - 0x1844]
add esp, 4
mov byte [ebp - 4], 2
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x457d07
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x17e4]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x457d4b
mov ecx, dword [ebp - 0x17f8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x457d41
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x457f13
push edx
push ecx
call fcn.004727ef
add esp, 8
push 7
xor eax, eax
mov dword [ebp - 0x17e8], 0
push 0x57df30
lea ecx, [ebp - 0x17f8]
mov dword [ebp - 0x17e4], 7
mov word [ebp - 0x17f8], ax
call fcn.0041cb00
lea eax, [ebp - 0x17f8]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x1840]
call fcn.0050eed0
mov edx, dword [ebp - 0x17e4]
mov esi, eax
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x457dd6
mov ecx, dword [ebp - 0x17f8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x457dcc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x457f18
push edx
push ecx
call fcn.004727ef
add esp, 8
test esi, esi
jne 0x457edc
call fcn.00463810
test al, al
jne 0x457edc
push 0x800
lea eax, [ebp - 0x810]
push esi
push eax
call fcn.0051e3d0
add esp, 0xc
lea eax, [ebp - 0x810]
push 0x400
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [ebp - 0x1800], esi
mov ecx, edx
mov dword [ebp - 0x17fc], 7
xor eax, eax
mov word [ebp - 0x1810], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457e40
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1810]
call fcn.0041cb00
push 9
push str.___admin
lea ecx, [ebp - 0x1810]
mov byte [ebp - 4], 5
call fcn.00430890
cmp dword [ebp - 0x17fc], 8
lea eax, [ebp - 0x1810]
push 5
cmovae eax, dword [ebp - 0x1810]
push 0
push eax
lea eax, [ebp - 0x810]
push eax
push str.runas
push 0
call fcn.00453000
mov edx, dword [ebp - 0x17fc]
mov bh, 1
cmp edx, 8
jb 0x457edc
mov ecx, dword [ebp - 0x1810]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x457ed2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x457f1d
push edx
push ecx
call fcn.004727ef
add esp, 8
lea ecx, [ebp - 0x1840]
call fcn.0050e950
mov al, bh
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047268d
mov esp, ebp
pop ebp
ret
call fcn.005229b9
call fcn.005229b9
call fcn.005229b9
call fcn.005229b9
call fcn.005229b9
call fcn.005229b9
int3