Function at 0x402173
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x409ed3
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
push ebx
push esi
push edi
mov eax, dword [0x41001c]
xor eax, esp
push eax
lea eax, [esp + 0x1b8]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x10]
lea eax, [esp + 0x34]
push eax
xor esi, esi
push edi
mov dword [esp + 0x3c], esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp word [edi], si
jne 0x4021c3
mov dword [esp + 0x34], esi
cmp dword [esp + 0x34], esi
jle 0x402581
lea eax, [esp + 0x1c]
push eax
call fcn.004025fb
mov dword [esp + 0x1c0], esi
push str._RegFileOpenCmd
push dword [esp + 0x20]
call dword [sym.imp.MSVCR80.dll_wcscmp]
cmp eax, esi
pop ecx
pop ecx
jne 0x4024ff
mov dword [esp + 0x18], esi
mov byte [esp + 0x1c0], 1
mov dword [esp + 0x24], esi
mov byte [esp + 0x1c0], 2
mov dword [esp + 0x20], esi
mov byte [esp + 0x1c0], 3
lea eax, [esp + 0x2c]
push eax
mov edi, str.SOFTWAREClasses_
call fcn.004025fb
mov byte [esp + 0x1c0], 4
mov esi, 0x40b5d4
push esi
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
mov ecx, dword [esp + 0x2c]
mov ebx, dword [ecx - 0xc]
mov dword [esp + 0x14], eax
mov edi, esi
add eax, ebx
sub edi, ecx
mov dword [esp + 0x28], esi
push eax
lea esi, [esp + 0x30]
sar edi, 1
mov dword [esp + 0x34], eax
call fcn.004055ca
cmp edi, ebx
lea edi, [eax + edi*2]
jbe 0x40226f
mov edi, dword [esp + 0x28]
push edi
push dword [esp + 0x18]
lea eax, [eax + ebx*2]
push eax
mov eax, dword [esp + 0x20]
call fcn.0040529e
mov eax, dword [esp + 0x3c]
add esp, 0xc
lea edx, [esp + 0x2c]
call fcn.004052ba
push dword [esp + 0x2c]
lea esi, [esp + 0x1c]
call fcn.00405705
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x40245a
push str.AliFileCheck.File
mov eax, esi
push eax
call fcn.004056c9
cmp dword [esp + 0x18], 0
je 0x4022cb
push dword [esp + 0x18]
call ebx
and dword [esp + 0x18], 0
push str.SOFTWAREClassesAliFileCheck.File_shellopencommand
lea esi, [esp + 0x28]
call fcn.00405705
test eax, eax
mov edi, 0x104
jne 0x40239a
lea eax, [esp + 0x14]
push eax
call fcn.004025cc
mov byte [esp + 0x1c0], 5
push edi
push edi
lea esi, [esp + 0x1c]
call fcn.004055ca
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp dword [esp + 0x14], 0
jne 0x402317
xor eax, eax
jmp 0x402322
push dword [esp + 0x14]
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea edx, [esp + 0x14]
call fcn.004052ba
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.00402898
mov byte [esp + 0x1c4], 6
lea ecx, [esp + 0x2c]
mov dword [esp], str.____1_
push ecx
mov esi, eax
call fcn.00402837
pop ecx
pop ecx
mov byte [esp + 0x1c0], 8
lea eax, [esp + 0x30]
push eax
call fcn.00402659
push dword [esp + 0x28]
lea eax, [esp + 0x28]
push eax
call fcn.004056c9
mov byte [esp + 0x1c0], 5
lea eax, [esp + 0x28]
push eax
call fcn.00402659
mov byte [esp + 0x1c0], 4
lea eax, [esp + 0x14]
push eax
call fcn.00402659
push 0x40b698
lea esi, [esp + 0x24]
call fcn.00405705
test eax, eax
jne 0x402444
lea eax, [esp + 0x14]
push eax
call fcn.004025cc
mov byte [esp + 0x1c0], 9
push edi
push edi
lea esi, [esp + 0x1c]
call fcn.004055ca
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp dword [esp + 0x14], edi
jne 0x4023e1
xor eax, eax
jmp 0x4023ec
push dword [esp + 0x14]
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea edx, [esp + 0x14]
call fcn.004052ba
lea eax, [esp + 0x28]
push 0x40b6f8
push eax
lea esi, [esp + 0x1c]
call fcn.00402837
pop ecx
pop ecx
mov byte [esp + 0x1c0], 0xa
push dword [esp + 0x28]
lea eax, [esp + 0x24]
push eax
call fcn.004056c9
mov byte [esp + 0x1c0], 9
lea eax, [esp + 0x28]
push eax
call fcn.00402659
mov byte [esp + 0x1c0], 4
mov eax, esi
push eax
call fcn.00402659
jmp 0x402446
xor edi, edi
mov byte [esp + 0x1c0], 3
lea eax, [esp + 0x2c]
push eax
call fcn.00402659
jmp 0x40246e
mov byte [esp + 0x1c0], 3
lea eax, [esp + 0x2c]
push eax
call fcn.00402659
xor edi, edi
cmp dword [esp + 0x18], edi
je 0x40247e
push dword [esp + 0x18]
call ebx
mov dword [esp + 0x18], edi
cmp dword [esp + 0x24], edi
je 0x40248e
push dword [esp + 0x24]
call ebx
mov dword [esp + 0x24], edi
cmp dword [esp + 0x20], edi
je 0x40249e
push dword [esp + 0x20]
call ebx
mov dword [esp + 0x20], edi
mov byte [esp + 0x1c0], 2
cmp dword [esp + 0x20], edi
je 0x4024b6
push dword [esp + 0x20]
call ebx
mov dword [esp + 0x20], edi
mov byte [esp + 0x1c0], 1
cmp dword [esp + 0x24], edi
je 0x4024ce
push dword [esp + 0x24]
call ebx
mov dword [esp + 0x24], edi
mov byte [esp + 0x1c0], 0
cmp dword [esp + 0x18], edi
je 0x4024e6
push dword [esp + 0x18]
call ebx
mov dword [esp + 0x18], edi
or dword [esp + 0x1c0], 0xffffffff
lea eax, [esp + 0x1c]
push eax
call fcn.00402659
xor eax, eax
jmp 0x4025b4
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x3c], esi
call fcn.004026bf
push esi
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
call sub.gdiplus.dll_GdiplusStartup
lea eax, [esp + 0x4c]
push eax
call fcn.00401ec2
mov byte [esp + 0x1c0], 0xb
lea eax, [esp + 0x1c]
lea edi, [esp + 0x1ac]
call fcn.0040267e
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea esi, [esp + 0x50]
call fcn.00402dd7
mov byte [esp + 0x1c0], 0
mov eax, esi
push eax
call fcn.00401f4a
push dword [esp + 0x38]
call sub.gdiplus.dll_GdiplusShutdown
jmp 0x4024e6
cmp byte [0x410e38], 0
je 0x40258f
or eax, 0xffffffff
jmp 0x4025b4
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ebx, [esp + 0x20]
call fcn.00403998
cmp al, 1
jne 0x4025b0
call fcn.00403a71
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10