Function at 0x4021c5
Capabilities:
Accept command line arguments
Create process on windows
Link many functions at runtime
Shutdown system
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
push ebx
push esi
push edi
push 4
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov dword [ebp - 0xc], esi
mov al, byte [esi]
cmp al, 0x22
jne 0x402726
mov al, byte [esi + 1]
inc esi
mov dword [ebp - 0xc], esi
xor ebx, ebx
cmp al, bl
je 0x402208
cmp al, 0x22
je 0x402208
mov al, byte [esi + 1]
inc esi
mov dword [ebp - 0xc], esi
jmp 0x4021f7
cmp byte [esi], 0x22
jne 0x402211
inc esi
mov dword [ebp - 0xc], esi
cmp byte [esi], 0x20
jne 0x40221f
inc esi
cmp byte [esi], 0x20
je 0x402216
mov dword [ebp - 0xc], esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp byte [esi], 0x2f
mov dword [ebp - 8], eax
jne 0x40225e
mov al, byte [esi + 1]
cmp al, 0x53
je 0x402239
cmp al, 0x73
jne 0x402243
mov dword [0x4042d4], 1
mov al, byte [esi + 1]
cmp al, 0x4d
je 0x40224e
cmp al, 0x6d
jne 0x40225e
cmp byte [esi + 2], 0x34
jne 0x40225e
mov dword [0x404360], 1
lea eax, [ebp - 0x33c]
push 0x100
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov cl, byte [esi]
mov eax, esi
cmp cl, bl
je 0x402286
cmp cl, 0x7f
je 0x402286
mov cl, byte [eax + 1]
inc eax
jmp 0x402277
cmp byte [eax], bl
je 0x4022bc
mov byte [eax], bl
inc eax
xor edx, edx
mov cl, byte [eax]
cmp cl, bl
je 0x4022a7
cmp cl, 0x20
je 0x4022a7
movsx ecx, cl
lea edx, [edx + edx*4]
inc eax
lea edx, [ecx + edx*2 - 0x30]
jmp 0x40228f
add dword [0x404188], edx
inc eax
push eax
lea eax, [ebp - 0x33c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x33c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
cmp eax, ebx
mov dword [0x4042bc], eax
jl 0x402552
call section..text
mov eax, dword [0x404188]
mov edi, dword [sym.imp.KERNEL32.dll__llseek]
push ebx
push eax
push dword [0x4042bc]
mov dword [0x4042a4], ebx
mov dword [0x4042b4], eax
mov dword [0x4042ac], eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll__lread]
lea eax, [ebp - 1]
push 1
push eax
push dword [0x4042bc]
call esi
cmp byte [ebp - 1], bl
je 0x402373
movzx eax, byte [ebp - 1]
push eax
lea eax, [ebp - 0x128]
push eax
push dword [0x4042bc]
call esi
lea eax, [ebp - 0x18]
push 4
push eax
push dword [0x4042bc]
call esi
lea eax, [ebp - 0x128]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
cmp eax, ebx
mov dword [ebp - 0x10], eax
jl 0x40236d
push 2
push ebx
push eax
call edi
cmp dword [ebp - 0x18], eax
je 0x402362
mov byte [ebp - 0x128], bl
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll__lclose]
jmp 0x402373
mov byte [ebp - 0x128], bl
push 4
push 0x4042dc
push dword [0x4042bc]
call esi
push 0xc
push 0x404380
push dword [0x4042bc]
call esi
push 8
push 0x40432c
push dword [0x4042bc]
call esi
push 0x40
push 0x4042ec
push dword [0x4042bc]
call esi
push 3
push 0x40436c
push dword [0x4042bc]
call esi
test byte [0x4042df], 0x40
je 0x4023d1
mov dword [0x404360], 1
lea eax, [ebp - 0x4bc]
mov dword [0x404368], eax
movzx eax, byte [0x40436e]
push eax
lea eax, [ebp - 0x4bc]
push eax
push dword [0x4042bc]
call esi
mov eax, dword [0x404328]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
inc eax
mov dword [0x40434c], 0x401ef5
push eax
push 2
mov dword [0x404350], 0x4020b6
mov dword [0x404364], 0x402ec6
call esi
push eax
mov dword [0x404340], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov dword [0x404344], eax
push dword [0x404324]
mov dword [0x404348], eax
push ebx
push dword [0x4042bc]
call fcn.00401ef5
test byte [0x4042dd], 0x10
mov dword [0x404348], ebx
je 0x402461
mov byte [0x4042e0], 1
push dword [ebp - 8]
call fcn.00402741
test eax, eax
pop ecx
je 0x402557
push dword [ebp - 8]
call fcn.004027a0
test eax, eax
pop ecx
je 0x402557
mov eax, dword [0x404294]
cmp dword [0x404320], ebx
mov dword [0x4042a0], eax
mov eax, dword [ebp - 8]
mov dword [0x4042a8], eax
mov dword [0x404334], 0x404380
je 0x4024da
push 1
push ebx
push dword [0x4042bc]
call edi
push 2
push ebx
push dword [0x4042bc]
mov dword [ebp - 0x10], eax
call edi
push ebx
mov dword [ebp - 0x18], eax
push dword [ebp - 0x10]
push dword [0x4042bc]
call edi
mov eax, dword [ebp - 0x18]
cmp eax, dword [0x404320]
jne 0x402552
mov eax, dword [0x4042ec]
inc eax
push eax
push 2
call esi
push eax
mov dword [0x404338], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov dword [0x40433c], eax
push dword [0x4042f0]
mov dword [0x404348], eax
push ebx
push dword [0x4042bc]
call fcn.00401ef5
cmp byte [ebp - 1], bl
mov dword [0x404348], ebx
jne 0x402574
lea eax, [ebp - 0x128]
push eax
call fcn.00402e79
pop ecx
lea eax, [ebp - 0x128]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov esi, dword [sym.imp.KERNEL32.dll__lclose]
push eax
call esi
lea eax, [ebp - 0x128]
push 2
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, ebx
jge 0x40255e
call fcn.00402ead
xor eax, eax
jmp 0x402721
push ebx
push dword [0x4042f4]
push edi
push dword [0x4042bc]
call fcn.00401ef5
push edi
call esi
cmp byte [0x4042c4], bl
push 1
pop edi
mov byte [ebp - 0x1a8], bl
mov dword [ebp - 0x14], edi
je 0x402592
call fcn.00402ead
jmp 0x402652
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x4025fc
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WiseMain
push esi
call edi
push str.UpdateScreen
push esi
mov dword [0x40438c], eax
call edi
push str.DisplayGraphics
push esi
mov dword [0x40435c], eax
call edi
push str.DiskPrompt
push esi
mov dword [0x404358], eax
call edi
push str.FileWrite
push esi
mov dword [0x404298], eax
call edi
push str.HandleFtp
push esi
mov dword [0x404364], eax
call edi
push 1
mov dword [0x404370], eax
pop edi
mov eax, dword [0x40438c]
cmp eax, ebx
jne 0x402629
cmp byte [ebp - 1], bl
mov eax, str.Demo_installations_only_run_on_the_computer_they_were_created_on.
jne 0x402614
mov eax, str.System_DLLs_corrupt_or_missing.
push ebx
push str.Install
push eax
push dword [0x404294]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x402652
lea ecx, [ebp - 0x3bc]
push ecx
lea ecx, [ebp - 0x1a8]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0xc]
push 0x4042a0
call eax
movzx eax, ax
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.00401083
cmp byte [ebp - 1], bl
jne 0x402675
lea eax, [ebp - 0x230]
push 0x200
push eax
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov eax, dword [0x4042e8]
cmp eax, ebx
je 0x402685
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 0x14], edi
je 0x4026fe
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x10]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4026e3
lea eax, [ebp - 0x24]
push eax
push str.SeShutdownPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push ebx
push ebx
lea eax, [ebp - 0x28]
push ebx
push eax
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x1c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 2
pop eax
cmp dword [ebp - 0x22c], eax
jne 0x4026f6
cmp dword [ebp - 0x14], 0x42
jne 0x4026f6
xor eax, eax
push ebx
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
cmp byte [ebp - 0x1a8], bl
je 0x402715
lea eax, [ebp - 0x1a8]
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
leave
ret
xor ebx, ebx
cmp al, bl
je 0x402211
cmp al, 0x20
je 0x402211
mov al, byte [esi + 1]
inc esi
mov dword [ebp - 0xc], esi
jmp 0x402728