Function at 0x40211c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x408b04
mov eax, dword fs:[0]
push eax
sub esp, 0x190
push ebx
push esi
push edi
mov eax, dword [0x40d01c]
xor eax, esp
push eax
lea eax, [esp + 0x1a0]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x10]
lea eax, [esp + 0x28]
push eax
xor esi, esi
push edi
mov dword [esp + 0x30], esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp word [edi], si
jne 0x40216c
mov dword [esp + 0x28], esi
cmp dword [esp + 0x28], esi
jle 0x402448
lea eax, [esp + 0x18]
push eax
call fcn.004024c2
mov dword [esp + 0x1a8], esi
push str._RegFileOpenCmd
push dword [esp + 0x1c]
call dword [sym.imp.MSVCR80.dll_wcscmp]
cmp eax, esi
pop ecx
pop ecx
jne 0x4023c6
mov dword [esp + 0x10], esi
mov byte [esp + 0x1a8], 1
mov dword [esp + 0x1c], esi
mov byte [esp + 0x1a8], 2
lea eax, [esp + 0x20]
push eax
mov edi, str.SOFTWAREClasses_
call fcn.004024c2
mov byte [esp + 0x1a8], 3
mov esi, 0x4095c4
push esi
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
mov ecx, dword [esp + 0x20]
mov ebx, dword [ecx - 0xc]
mov dword [esp + 0x14], eax
mov edi, esi
add eax, ebx
sub edi, ecx
mov dword [esp + 0x24], esi
push eax
lea esi, [esp + 0x24]
sar edi, 1
mov dword [esp + 0x30], eax
call fcn.00404897
cmp edi, ebx
lea edi, [eax + edi*2]
jbe 0x40220c
mov edi, dword [esp + 0x24]
push edi
push dword [esp + 0x18]
lea eax, [eax + ebx*2]
push eax
mov eax, dword [esp + 0x20]
call fcn.0040456b
mov eax, dword [esp + 0x38]
add esp, 0xc
lea edx, [esp + 0x20]
call fcn.00404587
push dword [esp + 0x20]
lea esi, [esp + 0x14]
call fcn.004049d2
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x402349
push str.AliFileCheck.File
mov eax, esi
push eax
call fcn.00404996
xor ebx, ebx
cmp dword [esp + 0x10], ebx
je 0x402268
push dword [esp + 0x10]
call edi
mov dword [esp + 0x10], ebx
push str.SOFTWAREClassesAliFileCheck.File_shellopencommand
lea esi, [esp + 0x20]
call fcn.004049d2
test eax, eax
jne 0x402335
lea eax, [esp + 0x14]
push eax
call fcn.00402493
mov byte [esp + 0x1a8], 4
mov eax, 0x104
push eax
push eax
lea esi, [esp + 0x1c]
call fcn.00404897
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp dword [esp + 0x14], ebx
jne 0x4022b2
xor eax, eax
jmp 0x4022bd
push dword [esp + 0x14]
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea edx, [esp + 0x14]
call fcn.00404587
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call fcn.0040275f
mov byte [esp + 0x1ac], 5
lea ecx, [esp + 0x28]
mov dword [esp], str.____1_
push ecx
mov esi, eax
call fcn.004026fe
pop ecx
pop ecx
mov byte [esp + 0x1a8], 7
lea eax, [esp + 0x2c]
push eax
call fcn.00402520
push dword [esp + 0x24]
lea eax, [esp + 0x20]
push eax
call fcn.00404996
mov byte [esp + 0x1a8], 4
lea eax, [esp + 0x24]
push eax
call fcn.00402520
mov byte [esp + 0x1a8], 3
lea eax, [esp + 0x14]
push eax
call fcn.00402520
mov byte [esp + 0x1a8], 2
lea eax, [esp + 0x20]
push eax
call fcn.00402520
jmp 0x40235d
mov byte [esp + 0x1a8], 2
lea eax, [esp + 0x20]
push eax
call fcn.00402520
xor ebx, ebx
cmp dword [esp + 0x10], ebx
je 0x40236d
push dword [esp + 0x10]
call edi
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x1c], ebx
je 0x40237d
push dword [esp + 0x1c]
call edi
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x1a8], 1
cmp dword [esp + 0x1c], ebx
je 0x402395
push dword [esp + 0x1c]
call edi
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x1a8], 0
cmp dword [esp + 0x10], ebx
je 0x4023ad
push dword [esp + 0x10]
call edi
mov dword [esp + 0x10], ebx
or dword [esp + 0x1a8], 0xffffffff
lea eax, [esp + 0x18]
push eax
call fcn.00402520
xor eax, eax
jmp 0x40247b
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x34], esi
call fcn.00402586
push esi
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
call sub.gdiplus.dll_GdiplusStartup
lea eax, [esp + 0x44]
push eax
call fcn.00401e47
mov byte [esp + 0x1a8], 8
lea eax, [esp + 0x18]
lea edi, [esp + 0x194]
call fcn.00402545
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea esi, [esp + 0x48]
call fcn.00402c9e
mov byte [esp + 0x1a8], 0
mov eax, esi
push eax
call fcn.00401ef4
push dword [esp + 0x30]
call sub.gdiplus.dll_GdiplusShutdown
jmp 0x4023ad
cmp byte [0x40ddb8], 0
je 0x402456
or eax, 0xffffffff
jmp 0x40247b
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ebx, [esp + 0x1c]
call fcn.0040363f
cmp al, 1
jne 0x402477
call fcn.00403718
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10