Function at 0x401e81
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x40b004]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov dword [esp + 0x28], eax
mov edi, edx
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x1c], edi
mov esi, 0x40b378
mov dword [0x40b388], edx
mov dword [0x40b378], edx
mov ebx, 0x40b3a0
mov dword [0x40b390], 1
mov dword [0x40b394], edx
mov dword [0x40b3a0], 0x40117c
mov dword [0x40b018], esi
mov ecx, dword [ebx]
lea eax, [esi + 8]
push eax
push edx
push edx
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], ecx
push eax
push 1
push ecx
push esi
mov dword [esp + 0x40], edx
lea ebx, [ebx + 4]
push 0x401e0b
mov dword [esi + 0x20], ecx
call dword [sym.imp.ADVAPI32.dll_RegisterTraceGuidsW]
mov esi, dword [esi]
push 0
pop edx
test esi, esi
jne 0x401f00
mov eax, dword [esp + 0x28]
mov dword [0x40b3a4], eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
mov ecx, 0x4011b4
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x401f8f
push 0x57
pop edi
mov esi, dword [0x40b018]
mov ebx, 0x40b018
cmp esi, ebx
je 0x4023ec
cmp byte [esi + 0x19], 2
jb 0x4023ec
push dword [esi + 0x14]
mov edx, ecx
push dword [esi + 0x10]
push 0xa
pop ecx
call fcn.00401d41
jmp 0x4023e6
cmp dword [esp + 0x14], 2
jge 0x401fce
push 0x57
pop edi
mov eax, dword [0x40b018]
mov ebx, 0x40b018
cmp eax, ebx
je 0x4023dc
cmp byte [eax + 0x19], 2
jb 0x4023dc
push dword [esp + 0x14]
mov edx, ecx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xb
pop ecx
call fcn.00401d64
jmp 0x4023dc
mov esi, dword [sym.imp.msvcrt.dll__wcsicmp]
push 0x40107c
push dword [ebx]
call esi
pop ecx
pop ecx
test eax, eax
jne 0x401fed
mov dword [esp + 0x20], 1
jmp 0x402008
push 0x4010a4
push dword [ebx]
call esi
pop ecx
pop ecx
test eax, eax
jne 0x4023ac
mov dword [esp + 0x20], 2
mov ecx, dword [ebx + 4]
push 2
pop esi
mov dword [0x40b370], ecx
cmp dword [esp + 0x14], esi
jle 0x40207f
push 0x4010d0
push dword [ebx + esi*4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x402038
mov dword [esp + 0x18], 1
jmp 0x402072
push 0x4010dc
push dword [ebx + esi*4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x402056
mov dword [esp + 0x30], 1
jmp 0x402072
push 0x4010f4
push dword [ebx + esi*4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x4020e6
mov dword [esp + 0x2c], 1
inc esi
cmp esi, dword [esp + 0x14]
jl 0x40201a
mov ecx, dword [0x40b370]
lea edx, [ecx + 2]
xor ebx, ebx
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x402084
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 0x40]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, eax
mov dword [0x40b3a8], edx
test edx, edx
jne 0x402119
push 8
pop edi
mov eax, dword [0x40b018]
mov ebx, 0x40b018
cmp eax, ebx
je 0x4023dc
cmp byte [eax + 0x19], 2
jb 0x4023dc
push dword [eax + 0x14]
mov edx, 0x4011b4
push dword [eax + 0x10]
push 0xe
pop ecx
call fcn.00401d41
jmp 0x4023dc
push 0x57
pop edi
mov eax, dword [0x40b018]
mov ebx, 0x40b018
cmp eax, ebx
je 0x4023dc
cmp byte [eax + 0x19], 2
jb 0x4023dc
mov ecx, dword [esp + 0x10]
push dword [ecx + esi*4]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xd
jmp 0x4023d1
mov esi, dword [0x40b370]
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x34]
jne 0x402124
sub ecx, ebx
sar ecx, 1
push esi
push 0x401104
lea eax, [ecx + 0x20]
push eax
push edx
call fcn.00401cd5
add esp, 0x10
xor eax, eax
push eax
push dword [0x40b3a8]
call dword [sym.imp.USER32.dll_FindWindowW]
mov ecx, eax
mov ebx, 0x40b018
mov dword [0x40b374], ecx
test ecx, ecx
je 0x4021db
cmp dword [esp + 0x20], 2
jne 0x4021a6
xor edi, edi
push edi
push edi
push 0x10
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x40b018]
cmp eax, ebx
je 0x4021dd
cmp byte [eax + 0x19], 4
jb 0x4021dd
push dword [0x40b374]
mov edx, 0x4011b4
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xf
pop ecx
call fcn.00401d64
jmp 0x4021dd
mov eax, dword [0x40b018]
mov ebx, 0x40b018
cmp eax, ebx
je 0x4023dc
cmp byte [eax + 0x19], 4
jb 0x4023dc
push ecx
push dword [eax + 0x14]
mov edx, 0x4011b4
push dword [eax + 0x10]
push 0x10
pop ecx
call fcn.00401d64
jmp 0x4023dc
xor edi, edi
push 0x30
pop esi
push esi
lea eax, [esp + 0x58]
push edi
push eax
call sub.msvcrt.dll_memset
mov eax, dword [esp + 0x34]
add esp, 0xc
mov dword [esp + 0x68], eax
mov eax, dword [0x40b3a8]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x58], esi
mov dword [esp + 0x60], 0x4024be
call dword [sym.imp.USER32.dll_RegisterClassExW]
push edi
push dword [0x40b3a4]
push edi
push edi
push edi
push edi
push edi
push edi
push SysReAllocString
push 0x40112c
push dword [0x40b3a8]
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x40b374], eax
test eax, eax
jne 0x402277
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x1c], eax
mov ecx, dword [0x40b018]
cmp ecx, ebx
je 0x402272
cmp byte [ecx + 0x19], 2
jb 0x402272
push eax
push dword [ecx + 0x14]
mov edx, 0x4011b4
push dword [ecx + 0x10]
push 0x11
pop ecx
call fcn.00401d64
mov eax, dword [0x40b374]
push edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 8
pop ecx
xor eax, eax
lea edi, [esp + 0x84]
rep stosd dword es:[edi], eax
mov dword [esp + 0x84], 0x20
lea edi, [esp + 0x90]
mov dword [esp + 0x88], 5
lea eax, [esp + 0x84]
mov esi, 0x401250
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor edi, edi
push edi
push eax
push dword [0x40b374]
call dword [sym.imp.USER32.dll_RegisterDeviceNotificationW]
mov dword [0x40b36c], eax
test eax, eax
jne 0x40230b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x40b018]
cmp eax, ebx
je 0x4023dc
cmp byte [eax + 0x19], 2
jb 0x4023dc
push edi
push dword [eax + 0x14]
mov edx, 0x4011b4
push dword [eax + 0x10]
push 0x12
pop ecx
call fcn.00401d64
jmp 0x4023dc
mov eax, dword [esp + 0x20]
dec eax
je 0x402334
dec eax
jne 0x40233d
push dword [esp + 0x2c]
mov edx, dword [0x40b370]
push dword [esp + 0x34]
mov ecx, dword [0x40b374]
push dword [esp + 0x20]
call fcn.00403219
jmp 0x40233d
push dword [esp + 0x18]
call fcn.004030bd
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x402360
cmp eax, 0xffffffff
je 0x40237f
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push edi
push edi
push edi
lea eax, [esp + 0x44]
push eax
call esi
test eax, eax
jne 0x402345
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x3c], 0x12
jne 0x4023dc
mov edi, dword [esp + 0x40]
jmp 0x4023dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x40b018]
cmp eax, ebx
je 0x402372
cmp byte [eax + 0x19], 2
jb 0x402372
push edi
push dword [eax + 0x14]
mov edx, 0x4011b4
push dword [eax + 0x10]
push 0x13
pop ecx
call fcn.00401d64
jmp 0x402372
push 0x57
pop edi
mov eax, dword [0x40b018]
mov ebx, 0x40b018
cmp eax, ebx
je 0x4023dc
cmp byte [eax + 0x19], 2
jb 0x4023dc
mov ecx, dword [esp + 0x10]
push dword [ecx]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xc
mov edx, 0x4011b4
pop ecx
call fcn.00401d8d
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [0x40b018]
mov eax, dword [0x40b3a8]
test eax, eax
je 0x40241b
push dword [0x40b3a4]
push eax
call dword [sym.imp.USER32.dll_UnregisterClassW]
push dword [0x40b3a8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [0x40b018]
xor eax, eax
mov dword [0x40b3a8], eax
mov eax, dword [0x40b36c]
test eax, eax
je 0x40246b
push eax
call dword [sym.imp.USER32.dll_UnregisterDeviceNotification]
test eax, eax
jne 0x40245e
mov esi, dword [0x40b018]
cmp esi, ebx
je 0x402464
cmp byte [esi + 0x19], 3
jb 0x402464
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x40b018]
mov edx, 0x4011b4
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x14
pop ecx
call fcn.00401d64
mov esi, dword [0x40b018]
xor eax, eax
mov dword [0x40b36c], eax
cmp esi, ebx
je 0x4024a0
test esi, esi
je 0x40249a
xor ebx, ebx
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
je 0x40248f
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_UnregisterTraceGuids]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov esi, dword [esi]
test esi, esi
jne 0x402475
mov ebx, 0x40b018
mov dword [0x40b018], ebx
mov ecx, dword [esp + 0xa4]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004097cb
mov esp, ebp
pop ebp
ret 0x10