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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56aec2
mov eax, dword fs:[0]
push eax
mov eax, 0x1838
call fcn.00472d10
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.0050ead0
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 0x457cd0
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.0050f150
mov edx, dword [ebp - 0x17fc]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x457d46
mov ecx, dword [ebp - 0x1810]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x457d3c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4580e4
push edx
push ecx
call fcn.004729bf
add esp, 8
lea eax, [ebp - 0x17f8]
xor bh, bh
push eax
call fcn.00456620
push 0xfd0
lea eax, [ebp - 0x17e0]
push 0
push eax
call fcn.0051e5a0
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 0x457db0
mov edx, dword [ebp - 0x17e4]
sub esi, ecx
sar esi, 1
cmp edx, 8
jb 0x457dff
mov ecx, dword [ebp - 0x17f8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x457df5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4580e9
push edx
push ecx
call fcn.004729bf
add esp, 8
test esi, esi
jne 0x4580bc
lea eax, [ebp - 0x17f8]
push eax
call fcn.00455ba0
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 0x457e77
mov ecx, dword [ebp - 0x17f8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x457e6d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4580ee
push edx
push ecx
call fcn.004729bf
add esp, 8
test bl, bl
je 0x4580bc
lea eax, [ebp - 0x17f8]
push eax
call fcn.00455ba0
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.00466420
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 0x457ee7
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 0x457f2b
mov ecx, dword [ebp - 0x17f8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x457f21
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4580f3
push edx
push ecx
call fcn.004729bf
add esp, 8
push 7
xor eax, eax
mov dword [ebp - 0x17e8], 0
push 0x57df90
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.0050f0b0
mov edx, dword [ebp - 0x17e4]
mov esi, eax
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x457fb6
mov ecx, dword [ebp - 0x17f8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x457fac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4580f8
push edx
push ecx
call fcn.004729bf
add esp, 8
test esi, esi
jne 0x4580bc
call fcn.004639e0
test al, al
jne 0x4580bc
push 0x800
lea eax, [ebp - 0x810]
push esi
push eax
call fcn.0051e5a0
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 0x458020
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.00430a70
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.004531e0
mov edx, dword [ebp - 0x17fc]
mov bh, 1
cmp edx, 8
jb 0x4580bc
mov ecx, dword [ebp - 0x1810]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4580b2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4580fd
push edx
push ecx
call fcn.004729bf
add esp, 8
lea ecx, [ebp - 0x1840]
call fcn.0050eb30
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.0047285d
mov esp, ebp
pop ebp
ret
call fcn.00522b89
call fcn.00522b89
call fcn.00522b89
call fcn.00522b89
call fcn.00522b89
call fcn.00522b89
int3