Function at 0x4021ee
Capabilities:
Create process on windows
Link many functions at runtime
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a0
push ebx
push esi
push edi
push 4
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, dword [ebp + 0x10]
cmp byte [esi], 0x2f
jne 0x40221f
mov al, byte [esi + 1]
cmp al, 0x53
je 0x402215
cmp al, 0x73
jne 0x40221f
mov dword [0x407390], 1
push 0x100
lea eax, [ebp - 0x320]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, esi
cmp byte [esi], 0
je 0x402246
cmp byte [eax], 0x7f
je 0x402246
inc eax
cmp byte [eax], 0
jne 0x40223b
xor edx, edx
cmp byte [eax], dl
je 0x402281
xor edi, edi
mov byte [eax], dl
inc eax
cmp byte [eax], dl
je 0x40226c
mov cl, byte [eax]
cmp cl, 0x20
je 0x40226c
imul edi, edi, 0xa
movsx ecx, cl
inc eax
lea edi, [ecx + edi - 0x30]
cmp byte [eax], 0
jne 0x402255
inc eax
lea ecx, [ebp - 0x320]
push eax
add dword [0x4061b0], edi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov dword [0x407378], eax
test eax, eax
jge 0x4022a5
call fcn.00402bde
xor eax, eax
jmp 0x402671
call section..text
mov eax, dword [0x4061b0]
push 0
push eax
mov dword [0x407370], eax
push dword [0x407378]
mov dword [0x407368], eax
call dword [sym.imp.KERNEL32.dll__llseek]
push 1
lea ecx, [ebp - 1]
push ecx
mov edi, dword [sym.imp.KERNEL32.dll__lread]
push dword [0x407378]
call edi
cmp byte [ebp - 1], 0
je 0x402340
movzx eax, byte [ebp - 1]
push eax
lea ecx, [ebp - 0x10c]
push ecx
push dword [0x407378]
call edi
push 4
lea ecx, [ebp - 8]
push ecx
push dword [0x407378]
call edi
push 0
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll__lopen]
mov ebx, eax
test ebx, ebx
jl 0x402339
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll__llseek]
cmp eax, dword [ebp - 8]
je 0x402330
mov byte [ebp - 0x10c], 0
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
jmp 0x402340
mov byte [ebp - 0x10c], 0
push 4
mov eax, dword [0x407378]
push 0x407394
push eax
call edi
push 0xc
mov eax, dword [0x407378]
push 0x407410
push eax
call edi
push 8
mov eax, dword [0x407378]
push 0x4073d8
push eax
call edi
push 0x38
mov eax, dword [0x407378]
push 0x4073a0
push eax
call edi
test byte [0x407395], 0x10
je 0x40238c
mov byte [0x407398], 1
test byte [0x407394], 0x80
je 0x4023ae
cmp dword [0x407390], 0
jne 0x4023ae
mov eax, dword [0x407394]
and al, 3
cmp al, 2
je 0x4023ae
call fcn.00402bf7
cmp dword [ebp + 0xc], 0
jne 0x4023ca
push dword [ebp + 8]
call fcn.0040267a
add esp, 4
test eax, eax
jne 0x4023ca
xor eax, eax
jmp 0x402671
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.004026dc
add esp, 8
test eax, eax
jne 0x4023e3
xor eax, eax
jmp 0x402671
mov eax, dword [0x40734c]
mov ecx, dword [ebp + 8]
mov dword [0x407360], eax
mov dword [0x407364], ecx
cmp dword [0x4073d4], 0
je 0x402446
push 1
mov eax, dword [0x407378]
push 0
push eax
call dword [sym.imp.KERNEL32.dll__llseek]
mov edi, eax
push 2
push 0
mov eax, dword [0x407378]
push eax
call dword [sym.imp.KERNEL32.dll__llseek]
mov ebx, eax
push 0
push edi
mov eax, dword [0x407378]
push eax
call dword [sym.imp.KERNEL32.dll__llseek]
cmp ebx, dword [0x4073d4]
je 0x402446
call fcn.00402bde
xor eax, eax
jmp 0x402671
mov dword [0x4073ec], fcn.00401fd7
mov dword [0x4073f0], 0x40219e
mov eax, dword [0x4073a0]
inc eax
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
xor ebx, ebx
mov dword [0x4073e0], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov dword [0x4073e4], eax
push dword [0x4073a4]
push ebx
mov dword [0x407400], 0x402d52
mov dword [0x4073e8], eax
mov eax, dword [0x407378]
push eax
call fcn.00401fd7
mov dword [0x4073e8], ebx
cmp byte [ebp - 1], bl
jne 0x402509
lea eax, [ebp - 0x10c]
push eax
call fcn.00402b8f
add esp, 4
lea eax, [ebp - 0x10c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
push 2
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
cmp eax, ebx
mov edi, eax
jge 0x4024ee
call fcn.00402bde
xor eax, eax
jmp 0x402671
push 0
mov eax, dword [0x4073a8]
push eax
push edi
push dword [0x407378]
call fcn.00401fd7
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
mov dword [ebp - 0xc], 1
mov byte [ebp - 0x18c], 0
cmp byte [0x407380], 0
je 0x40252a
call fcn.00402bde
jmp 0x4025ea
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x402591
push str.WiseMain
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
call ebx
push str.UpdateScreen
mov dword [0x40741c], eax
push edi
call ebx
push str.DisplayGraphics
mov dword [0x4073fc], eax
push edi
call ebx
push str.DiskPrompt
mov dword [0x4073f8], eax
push edi
call ebx
push str.FileWrite
mov dword [0x407350], eax
push edi
call ebx
push str.HandleFtp
mov dword [0x407400], eax
push edi
call ebx
mov dword [0x407408], eax
xor eax, eax
cmp dword [0x40741c], eax
jne 0x4025bf
push eax
cmp byte [ebp - 1], al
push str.Install
mov eax, str.Demo_installations_only_run_on_the_computer_they_were_created_on.
jne 0x4025b0
mov eax, str.System_DLLs_corrupt_or_missing.
push eax
mov eax, dword [0x40734c]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4025ea
lea eax, [ebp - 0x3a0]
lea ecx, [ebp - 0x18c]
push eax
lea edx, [ebp - 0xc]
push ecx
push edx
push esi
push 0x407360
call dword [0x40741c]
movzx ecx, ax
push edi
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.00401088
cmp byte [ebp - 1], 0
jne 0x402604
lea eax, [ebp - 0x10c]
push eax
call fcn.00403160
add esp, 4
cmp dword [0x407404], 0
je 0x402619
mov eax, dword [0x407404]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 0xc], 1
je 0x402656
mov dword [ebp - 0x220], 0x94
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0
mov eax, dword [ebp - 0x210]
sub eax, 2
cmp eax, 1
mov eax, 0
adc eax, 0xffffffff
and eax, 2
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
cmp byte [ebp - 0x18c], 0
je 0x40266e
push 5
lea eax, [ebp - 0x18c]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10