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, 0x3ac
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 - 8], esi
mov al, byte [esi]
cmp al, 0x22
jne 0x40264f
mov al, byte [esi + 1]
inc esi
mov dword [ebp - 8], esi
xor ebx, ebx
cmp al, bl
je 0x402208
cmp al, 0x22
je 0x402208
mov al, byte [esi + 1]
inc esi
mov dword [ebp - 8], esi
jmp 0x4021f7
cmp byte [esi], 0x22
jne 0x402211
inc esi
mov dword [ebp - 8], esi
cmp byte [esi], 0x20
jne 0x40221f
inc esi
cmp byte [esi], 0x20
je 0x402216
mov dword [ebp - 8], esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp byte [esi], 0x2f
mov dword [ebp - 0xc], eax
jne 0x402243
mov al, byte [esi + 1]
cmp al, 0x53
je 0x402239
cmp al, 0x73
jne 0x402243
mov dword [0x4042d0], 1
lea eax, [ebp - 0x32c]
push 0x100
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov cl, byte [esi]
mov eax, esi
cmp cl, bl
je 0x40226b
cmp cl, 0x7f
je 0x40226b
mov cl, byte [eax + 1]
inc eax
jmp 0x40225c
cmp byte [eax], bl
je 0x4022a1
mov byte [eax], bl
inc eax
xor edx, edx
mov cl, byte [eax]
cmp cl, bl
je 0x40228c
cmp cl, 0x20
je 0x40228c
movsx ecx, cl
lea edx, [edx + edx*4]
inc eax
lea edx, [ecx + edx*2 - 0x30]
jmp 0x402274
add dword [0x404188], edx
inc eax
push eax
lea eax, [ebp - 0x32c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x32c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
cmp eax, ebx
mov dword [0x4042b8], eax
jl 0x4024c2
call section..text
mov eax, dword [0x404188]
mov edi, dword [sym.imp.KERNEL32.dll__llseek]
push ebx
push eax
push dword [0x4042b8]
mov dword [0x4042b0], eax
mov dword [0x4042a8], eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll__lread]
lea eax, [ebp - 1]
push 1
push eax
push dword [0x4042b8]
call esi
cmp byte [ebp - 1], bl
je 0x402352
movzx eax, byte [ebp - 1]
push eax
lea eax, [ebp - 0x118]
push eax
push dword [0x4042b8]
call esi
lea eax, [ebp - 0x18]
push 4
push eax
push dword [0x4042b8]
call esi
lea eax, [ebp - 0x118]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
cmp eax, ebx
mov dword [ebp - 0x10], eax
jl 0x40234c
push 2
push ebx
push eax
call edi
cmp dword [ebp - 0x18], eax
je 0x402341
mov byte [ebp - 0x118], bl
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll__lclose]
jmp 0x402352
mov byte [ebp - 0x118], bl
push 4
push 0x4042d4
push dword [0x4042b8]
call esi
push 0xc
push 0x404350
push dword [0x4042b8]
call esi
push 8
push 0x40431c
push dword [0x4042b8]
call esi
push 0x38
push 0x4042e4
push dword [0x4042b8]
call esi
mov eax, dword [0x4042d4]
test ah, 0x10
je 0x40239f
mov byte [0x4042d8], 1
test byte [0x4042d4], 0x80
je 0x4023bc
cmp dword [0x4042d0], ebx
jne 0x4023bc
and eax, 3
cmp al, 2
je 0x4023bc
call fcn.00402b95
mov esi, dword [ebp - 0xc]
push esi
call fcn.0040266a
test eax, eax
pop ecx
je 0x4024c7
push esi
call fcn.004026c9
test eax, eax
pop ecx
je 0x4024c7
mov eax, dword [0x40428c]
cmp dword [0x404318], ebx
mov dword [0x4042a0], eax
mov dword [0x4042a4], esi
je 0x402428
push 1
push ebx
push dword [0x4042b8]
call edi
push 2
push ebx
push dword [0x4042b8]
mov dword [ebp - 0x10], eax
call edi
push ebx
mov esi, eax
push dword [ebp - 0x10]
push dword [0x4042b8]
call edi
cmp esi, dword [0x404318]
jne 0x4024c2
mov eax, dword [0x4042e4]
mov dword [0x404330], 0x401ef5
inc eax
mov dword [0x404334], 0x4020b6
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [0x404324], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov dword [0x404328], eax
push dword [0x4042e8]
mov dword [0x404344], 0x402cdc
mov dword [0x40432c], eax
push ebx
push dword [0x4042b8]
call fcn.00401ef5
cmp byte [ebp - 1], bl
mov dword [0x40432c], ebx
jne 0x4024e4
lea eax, [ebp - 0x118]
push eax
call fcn.00402b1b
pop ecx
lea eax, [ebp - 0x118]
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 - 0x118]
push 2
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, ebx
jge 0x4024ce
call fcn.00402b7c
xor eax, eax
jmp 0x40264a
push ebx
push dword [0x4042ec]
push edi
push dword [0x4042b8]
call fcn.00401ef5
push edi
call esi
cmp byte [0x4042c0], bl
mov dword [ebp - 0x14], 1
mov byte [ebp - 0x198], bl
je 0x402503
call fcn.00402b7c
jmp 0x4025c0
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40256a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WiseMain
push edi
call esi
push str.UpdateScreen
push edi
mov dword [0x40435c], eax
call esi
push str.DisplayGraphics
push edi
mov dword [0x404340], eax
call esi
push str.DiskPrompt
push edi
mov dword [0x40433c], eax
call esi
push str.FileWrite
push edi
mov dword [0x404290], eax
call esi
push str.HandleFtp
push edi
mov dword [0x404344], eax
call esi
mov dword [0x40434c], eax
mov eax, dword [0x40435c]
cmp eax, ebx
jne 0x402597
cmp byte [ebp - 1], bl
mov eax, str.Demo_installations_only_run_on_the_computer_they_were_created_on.
jne 0x402582
mov eax, str.System_DLLs_corrupt_or_missing.
push ebx
push str.Install
push eax
push dword [0x40428c]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4025c0
lea ecx, [ebp - 0x3ac]
push ecx
lea ecx, [ebp - 0x198]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 8]
push 0x4042a0
call eax
movzx eax, ax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.00401083
cmp byte [ebp - 1], bl
jne 0x4025e3
lea eax, [ebp - 0x220]
push 0x200
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov eax, dword [0x404348]
cmp eax, ebx
je 0x4025f3
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 0x14], 1
je 0x402627
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x22c], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0x21c]
push ebx
dec eax
dec eax
neg eax
sbb eax, eax
and eax, 2
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
cmp byte [ebp - 0x198], bl
je 0x40263e
lea eax, [ebp - 0x198]
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
push dword [ebp - 0xc]
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 - 8], esi
jmp 0x402651