Function at 0x40ea30
Capabilities:
Accept command line arguments
Acquire debug privileges
Initialize winsock library
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1f0
mov eax, dword [0x50a0b0]
xor eax, esp
mov dword [esp + 0x1ec], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x50c5e4]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x50bd6c]
cmp eax, dword [ecx + 4]
jg 0x40f306
push ebx
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 0x28
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40eaf5
lea eax, [esp + 0x34]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x40eaef
mov eax, dword [esp + 0x34]
push 0
push 0
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x40]
push 0x10
mov dword [esp + 0x30], eax
lea eax, [esp + 0x28]
push eax
push 0
push dword [esp + 0x2c]
mov dword [esp + 0x34], 1
mov dword [esp + 0x40], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x40eaf5
push dword [esp + 0x18]
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
push 0xc
xor eax, eax
mov dword [esp + 0x30], 0
push str.explorer.exe
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 7
mov word [esp + 0x24], ax
call fcn.0040b6e0
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.004a9e70
mov edx, dword [esp + 0x3c]
add esp, 0xc
cmp edx, 8
jb 0x40eb81
mov ecx, dword [esp + 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40eb77
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f34b
push edx
push ecx
call fcn.004bf4bc
add esp, 8
mov edx, dword [esp + 0x34]
cmp edx, dword [esp + 0x38]
jne 0x40ed26
mov dword [0x50bd58], 0
test edx, edx
je 0x40ebce
mov ecx, dword [esp + 0x3c]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x40ebc4
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f350
push ecx
push edx
call fcn.004bf4bc
add esp, 8
push ebp
push edi
push 0x4e93f4
push 0
call fcn.004c9731
push 0x190
lea eax, [esp + 0x78]
push 0
push eax
call fcn.004c2200
add esp, 0x14
lea eax, [esp + 0x6c]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
xor eax, eax
mov dword [esp + 0x1c], 0
mov word [esp + 0x24], ax
mov ebx, 0x2710
lea eax, [esp + 0x1c]
mov byte [esp + 0x1b], 0
push eax
mov byte [esp + 0x17], 0
mov byte [esp + 0x19], 0
mov byte [esp + 0x18], 0
mov byte [esp + 0x1a], 0
mov byte [esp + 0x1b], 0
mov byte [esp + 0x1c], 0
mov byte [esp + 0x1d], 0
mov byte [esp + 0x1e], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 7
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebp, eax
test ebp, ebp
je 0x40ef65
cmp dword [esp + 0x1c], 2
jl 0x40ef65
mov edx, dword [ebp + 4]
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ec80
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x2c]
call fcn.0040b6e0
cmp dword [esp + 0x38], 8
lea esi, [esp + 0x24]
mov edi, dword [esp + 0x24]
cmovae esi, edi
cmp dword [esp + 0x34], 6
jne 0x40edde
mov ecx, str.__stop
mov edx, 6
sub esi, ecx
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x40edde
add ecx, 2
sub edx, 1
jne 0x40ecc1
mov esi, 2
cmp dword [esp + 0x1c], esi
jle 0x40eda6
jmp 0x40ecf0
mov eax, dword [ebp + esi*4]
mov ecx, str._timeout
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40ed83
test dx, dx
je 0x40ed22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40ed83
add eax, 4
add ecx, 4
test dx, dx
jne 0x40ed00
xor eax, eax
jmp 0x40ed88
push dword [edx]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x50bd58
push 0xc
push eax
call esi
mov edx, dword [esp + 0x34]
test eax, eax
je 0x40eb8f
test edx, edx
je 0x40ebce
mov ecx, dword [esp + 0x3c]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x40ebc4
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f350
jmp 0x40ebc4
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40ed9b
push dword [ebp + esi*4 + 4]
inc esi
call fcn.004c572a
add esp, 4
mov ebx, eax
inc esi
cmp esi, dword [esp + 0x1c]
jl 0x40ecf0
xor esi, esi
test ebx, ebx
js 0x40ef65
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call fcn.004aa3d0
add esp, 4
test eax, eax
je 0x40ef65
push 0x3e8
call edi
add esi, 0x3e8
cmp esi, ebx
jle 0x40edb6
jmp 0x40ef65
lea eax, [esp + 0x24]
push str.__force_stop
push eax
call fcn.004016b0
add esp, 8
test al, al
jne 0x40ef50
lea eax, [esp + 0x24]
push str.__remove_shortcuts
push eax
call fcn.004016b0
add esp, 8
test al, al
jne 0x40ef37
lea eax, [esp + 0x24]
push str.__create_shortcuts
push eax
call fcn.004016b0
add esp, 8
test al, al
je 0x40ee32
mov byte [esp + 0x1b], 1
jmp 0x40ef65
lea eax, [esp + 0x24]
push str.__remove_all_users_empty_folders
push eax
call fcn.004016b0
add esp, 8
test al, al
je 0x40ee57
mov al, byte [esp + 0x14]
mov cl, 1
mov byte [esp + 0x13], cl
jmp 0x40ef6b
lea eax, [esp + 0x24]
push str.__remove_active_backup_folder
push eax
call fcn.004016b0
add esp, 8
test al, al
je 0x40ee77
mov byte [esp + 0x15], 1
jmp 0x40ef65
lea eax, [esp + 0x24]
push str.__move_private_beta_data
push eax
call fcn.004016b0
add esp, 8
test al, al
je 0x40ee9c
mov cl, byte [esp + 0x13]
mov al, 1
mov byte [esp + 0x14], al
jmp 0x40ef6b
lea eax, [esp + 0x24]
push str.__remove_snapshot
push eax
call fcn.004016b0
add esp, 8
test al, al
je 0x40eebc
mov byte [esp + 0x16], 1
jmp 0x40ef65
lea eax, [esp + 0x24]
push str.__remove_task_scheduler
push eax
call fcn.004016b0
add esp, 8
test al, al
je 0x40eedc
mov byte [esp + 0x17], 1
jmp 0x40ef65
lea eax, [esp + 0x24]
push str.__auth
push eax
call fcn.004016b0
add esp, 8
test al, al
je 0x40eef9
mov byte [esp + 0x18], 1
jmp 0x40ef65
lea eax, [esp + 0x24]
push str.__clear_icon_cache
push eax
call fcn.004016b0
add esp, 8
test al, al
je 0x40ef16
mov byte [esp + 0x19], 1
jmp 0x40ef65
lea eax, [esp + 0x24]
push str.__move_log
push eax
call fcn.004016b0
add esp, 8
test al, al
je 0x40f0cf
mov byte [esp + 0x1a], 1
jmp 0x40ef65
lea eax, [ebp + 8]
push eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffffe
push eax
call fcn.00407c40
add esp, 8
jmp 0x40f0aa
push 0
call fcn.004aa060
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, byte [esp + 0x14]
mov cl, al
cmp byte [esp + 0x1b], 0
lea ebx, [ebp + 8]
je 0x40efc2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffffe
push ebx
push eax
call fcn.00405620
mov dl, byte [esp + 0x1d]
add esp, 8
mov ah, byte [esp + 0x18]
mov cl, byte [esp + 0x13]
mov al, byte [esp + 0x14]
mov byte [esp + 0x15], dl
mov dl, byte [esp + 0x16]
mov byte [esp + 0x16], dl
mov dl, byte [esp + 0x17]
mov byte [esp + 0x17], dl
mov dl, byte [esp + 0x1a]
mov byte [esp + 0x18], ah
mov ah, byte [esp + 0x19]
mov byte [esp + 0x13], cl
mov byte [esp + 0x19], ah
mov byte [esp + 0x1a], dl
test al, al
je 0x40efcf
call fcn.00406e00
mov cl, byte [esp + 0x13]
test cl, cl
je 0x40efd8
call fcn.00407800
cmp byte [esp + 0x15], 0
je 0x40efe4
call fcn.00407560
cmp byte [esp + 0x16], 0
je 0x40eff0
call fcn.00404b60
cmp byte [esp + 0x17], 0
je 0x40f076
lea eax, [esp + 0x54]
push eax
call fcn.004aa860
add esp, 4
cmp dword [esp + 0x64], 0
je 0x40f10f
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.0040e080
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x40f029
mov eax, dword [eax]
push eax
push str.init_com_failed___s_
call fcn.00406300
add esp, 8
lea ecx, [esp + 0x3c]
call fcn.00403880
mov edx, dword [esp + 0x68]
cmp edx, 0x10
jb 0x40f076
mov ecx, dword [esp + 0x54]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f06c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f364
push edx
push ecx
call fcn.004bf4bc
add esp, 8
cmp byte [esp + 0x18], 0
je 0x40f08e
mov eax, dword [esp + 0x1c]
add eax, 0xfffffffe
push ebx
push eax
call fcn.00408250
add esp, 8
cmp byte [esp + 0x19], 0
je 0x40f09a
call fcn.00405110
cmp byte [esp + 0x1a], 0
je 0x40f0a6
call fcn.00406600
test ebp, ebp
je 0x40f0b1
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x50bd58]
test eax, eax
je 0x40f0cb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x50bd58], 0
mov edi, dword [esp + 0x24]
call sub.WS2_32.dll_WSACleanup
mov eax, dword [esp + 0x38]
cmp eax, 8
jb 0x40f2e9
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x40f2df
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f355
jmp 0x40f2df
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.004aab40
mov esi, eax
add esp, 8
lea eax, [esp + 0x54]
cmp eax, esi
je 0x40f1b1
mov edx, dword [esp + 0x68]
cmp edx, 0x10
jb 0x40f162
mov ecx, dword [esp + 0x54]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f158
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f35a
push edx
push ecx
call fcn.004bf4bc
add esp, 8
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0xf
mov byte [esp + 0x54], 0
mov eax, dword [esi]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x60], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x64], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x68], eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov edx, dword [esp + 0x50]
cmp edx, 0x10
jb 0x40f1e7
mov ecx, dword [esp + 0x3c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f1dd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f35a
push edx
push ecx
call fcn.004bf4bc
add esp, 8
mov esi, dword [esp + 0x64]
test esi, esi
je 0x40f2a6
cmp dword [esp + 0x68], 0x10
lea edi, [esp + 0x54]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x4c], 0
cmovae edi, dword [esp + 0x54]
add edi, esi
mov dword [esp + 0x50], 7
cmp dword [esp + 0x68], 0x10
lea esi, [esp + 0x54]
cmovae esi, dword [esp + 0x54]
xor eax, eax
mov word [esp + 0x3c], ax
mov eax, edi
sub eax, esi
push eax
call fcn.0040d650
push dword [esp + 0x20]
lea ecx, [esp + 0x40]
push edi
push esi
call fcn.00401da0
cmp dword [esp + 0x50], 8
lea eax, [esp + 0x3c]
cmovae eax, dword [esp + 0x3c]
push eax
push str.clean_wakeup_schedule_failed___s_
call fcn.00406300
mov edx, dword [esp + 0x58]
add esp, 8
cmp edx, 8
jb 0x40f040
mov ecx, dword [esp + 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f297
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f35f
push edx
push ecx
call fcn.004bf4bc
add esp, 8
jmp 0x40f040
mov edx, dword [esp + 0x68]
cmp edx, 0x10
jb 0x40f076
mov ecx, dword [esp + 0x54]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f06c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f364
jmp 0x40f06c
push ecx
push edi
call fcn.004bf4bc
add esp, 8
mov ecx, dword [esp + 0x1fc]
xor eax, eax
pop edi
pop ebp
pop esi
pop ebx
xor ecx, esp
call fcn.004bf929
add esp, 0x1f0
ret 0x10
push 0x50bd6c
call fcn.004bf853
add esp, 4
cmp dword [0x50bd6c], 0xffffffff
jne 0x40ea64
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x4e8a50
mov byte [0x50bd68], 1
call fcn.004bf70b
push 0x50bd6c
call fcn.004bf809
add esp, 8
jmp 0x40ea64
call fcn.004c4cda
call fcn.004c4cda
call fcn.004c4cda
call fcn.004c4cda
call fcn.004c4cda
call fcn.004c4cda
int3