Function at 0x4021a9
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 0x40226a
mov al, byte [esi + 1]
inc esi
mov dword [ebp - 0xc], esi
xor ebx, ebx
cmp al, bl
je 0x4021ec
cmp al, 0x22
je 0x4021ec
mov al, byte [esi + 1]
inc esi
mov dword [ebp - 0xc], esi
jmp 0x4021db
cmp byte [esi], 0x22
jne 0x4021f5
inc esi
mov dword [ebp - 0xc], esi
cmp byte [esi], 0x20
jne 0x402203
inc esi
cmp byte [esi], 0x20
je 0x4021fa
mov dword [ebp - 0xc], esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp byte [esi], 0x2f
mov dword [ebp - 8], eax
jne 0x402242
mov al, byte [esi + 1]
cmp al, 0x53
je 0x40221d
cmp al, 0x73
jne 0x402227
mov dword [0x4042f4], 1
mov al, byte [esi + 1]
cmp al, 0x4d
je 0x402232
cmp al, 0x6d
jne 0x402242
cmp byte [esi + 2], 0x34
jne 0x402242
mov dword [0x404380], 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 0x40227d
cmp cl, 0x7f
je 0x40227d
mov cl, byte [eax + 1]
inc eax
jmp 0x40225b
xor ebx, ebx
cmp al, bl
je 0x4021f5
cmp al, 0x20
je 0x4021f5
mov al, byte [esi + 1]
inc esi
mov dword [ebp - 0xc], esi
jmp 0x40226c
cmp byte [eax], bl
je 0x4022b3
mov byte [eax], bl
inc eax
xor edx, edx
mov cl, byte [eax]
cmp cl, bl
je 0x40229e
cmp cl, 0x20
je 0x40229e
movsx ecx, cl
lea edx, [edx + edx*4]
inc eax
lea edx, [ecx + edx*2 - 0x30]
jmp 0x402286
add dword [0x404178], 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 [0x4042dc], eax
jge 0x4022d5
lea eax, [ebp - 0x33c]
jmp 0x40255d
call section..text
mov eax, dword [0x404178]
mov edi, dword [sym.imp.KERNEL32.dll__llseek]
push ebx
push eax
push dword [0x4042dc]
mov dword [0x4042c4], ebx
mov dword [0x4042d4], eax
mov dword [0x4042cc], eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll__lread]
lea eax, [ebp - 1]
push 1
push eax
push dword [0x4042dc]
call esi
cmp byte [ebp - 1], bl
je 0x402371
movzx eax, byte [ebp - 1]
push eax
lea eax, [ebp - 0x128]
push eax
push dword [0x4042dc]
call esi
lea eax, [ebp - 0x18]
push 4
push eax
push dword [0x4042dc]
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 0x40236b
push 2
push ebx
push eax
call edi
cmp dword [ebp - 0x18], eax
je 0x402360
mov byte [ebp - 0x128], bl
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll__lclose]
jmp 0x402371
mov byte [ebp - 0x128], bl
push 4
push 0x4042fc
push dword [0x4042dc]
call esi
push 0xc
push 0x4043a0
push dword [0x4042dc]
call esi
push 8
push 0x40434c
push dword [0x4042dc]
call esi
push 0x40
push 0x40430c
push dword [0x4042dc]
call esi
push 3
push 0x40438c
push dword [0x4042dc]
call esi
test byte [0x4042ff], 0x40
je 0x4023cf
mov dword [0x404380], 1
lea eax, [ebp - 0x4bc]
mov dword [0x404388], eax
movzx eax, byte [0x40438e]
push eax
lea eax, [ebp - 0x4bc]
push eax
push dword [0x4042dc]
call esi
mov eax, dword [0x404348]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
inc eax
mov dword [0x40436c], 0x401ed9
push eax
push 2
mov dword [0x404370], 0x40209a
mov dword [0x404384], 0x402f46
call esi
push eax
mov dword [0x404360], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov dword [0x404364], eax
push dword [0x404344]
mov dword [0x404368], eax
push ebx
push dword [0x4042dc]
call fcn.00401ed9
test byte [0x4042fd], 0x10
mov dword [0x404368], ebx
je 0x40245f
mov byte [0x404300], 1
push dword [ebp - 8]
call fcn.0040273d
test eax, eax
pop ecx
je 0x402564
push dword [ebp - 8]
call fcn.0040279c
test eax, eax
pop ecx
je 0x402564
mov eax, dword [0x4042a0]
cmp dword [0x404340], ebx
mov dword [0x4042c0], eax
mov eax, dword [ebp - 8]
mov dword [0x4042c8], eax
mov dword [0x404354], 0x4043a0
je 0x4024df
push 1
push ebx
push dword [0x4042dc]
call edi
push 2
push ebx
push dword [0x4042dc]
mov dword [ebp - 0x10], eax
call edi
push ebx
mov dword [ebp - 0x18], eax
push dword [ebp - 0x10]
push dword [0x4042dc]
call edi
mov eax, dword [ebp - 0x18]
cmp eax, dword [0x404340]
je 0x4024df
push str._CRC_
jmp 0x40255e
mov eax, dword [0x40430c]
inc eax
push eax
push 2
call esi
push eax
mov dword [0x404358], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov dword [0x40435c], eax
push dword [0x404310]
mov dword [0x404368], eax
push ebx
push dword [0x4042dc]
call fcn.00401ed9
cmp byte [ebp - 1], bl
mov dword [0x404368], ebx
jne 0x402581
lea eax, [ebp - 0x128]
push eax
call fcn.00402e54
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 0x40256b
lea eax, [ebp - 0x128]
push eax
call fcn.00402eaf
pop ecx
xor eax, eax
jmp 0x402738
push ebx
push dword [0x404314]
push edi
push dword [0x4042dc]
call fcn.00401ed9
push edi
call esi
cmp byte [0x4042e4], bl
push 1
pop edi
mov byte [ebp - 0x1a8], bl
mov dword [ebp - 0x14], edi
je 0x4025a5
push str._CRC_
call fcn.00402eaf
pop ecx
jmp 0x402669
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x40260f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WiseMain
push esi
call edi
push str.UpdateScreen
push esi
mov dword [0x4043ac], eax
call edi
push str.DisplayGraphics
push esi
mov dword [0x40437c], eax
call edi
push str.DiskPrompt
push esi
mov dword [0x404378], eax
call edi
push str.FileWrite
push esi
mov dword [0x4042a4], eax
call edi
push str.HandleFtp
push esi
mov dword [0x404384], eax
call edi
push 1
mov dword [0x404390], eax
pop edi
mov eax, dword [0x4043ac]
cmp eax, ebx
jne 0x402640
cmp byte [ebp - 1], bl
je 0x402636
push ebx
push str.Install
push str.Demo_installations_only_run_on_the_computer_they_were_created_on.
push dword [0x4042a0]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x402669
push str.System_DLLs_corrupt_or_missing.
jmp 0x40259a
lea ecx, [ebp - 0x3bc]
push ecx
lea ecx, [ebp - 0x1a8]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0xc]
push 0x4042c0
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 0x40268c
lea eax, [ebp - 0x230]
push 0x200
push eax
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov eax, dword [0x404308]
cmp eax, ebx
je 0x40269c
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 0x14], edi
je 0x402715
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 0x4026fa
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 0x40270d
cmp dword [ebp - 0x14], 0x42
jne 0x40270d
xor eax, eax
push ebx
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
cmp byte [ebp - 0x1a8], bl
je 0x40272c
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