Function at 0x402220
Capabilities:
Check if file exists
Create directory
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x461522
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x491104]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x1c], edi
cmp byte [edi + 4], 0
jne 0x402c82
call fcn.00419610
mov eax, dword [ebp + 8]
push eax
lea ebx, [esp + 0x40]
call fcn.00410f00
mov dword [esp + 0x50], 0
mov ecx, ebx
call fcn.00411060
mov edx, dword [edi]
mov edx, dword [edx + 0xc]
mov eax, ebx
push eax
mov ecx, edi
call edx
cmp byte [edi + 6], 0
sete al
test al, al
je 0x402552
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
mov byte [esp + 0x17], al
lea esi, [edi + 5]
lea eax, [esp + 0x17]
mov ecx, ebx
mov byte [esi], 0
call fcn.00403e30
test al, al
je 0x40272a
cmp byte [esi], 0
je 0x402b6a
lea esi, [esp + 0x18]
call fcn.004104e0
mov byte [esp + 0x50], 1
lea ecx, [esp + 0x38]
push ecx
call fcn.00416a90
add esp, 4
mov esi, eax
mov byte [esp + 0x50], 2
lea edx, [esp + 0x34]
push edx
call fcn.00410440
add esp, 4
mov byte [esp + 0x50], 3
push eax
lea eax, [esp + 0x34]
push str.__startafterreboot__originpath:__
push eax
call fcn.00406220
add esp, 0xc
mov byte [esp + 0x50], 4
push str.___lang:__
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00406150
add esp, 0xc
mov byte [esp + 0x50], 5
push esi
push eax
lea edx, [esp + 0x30]
push edx
call fcn.004060a0
add esp, 0xc
mov byte [esp + 0x50], 6
push str._____licensedir:__
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00406150
add esp, 0xc
mov byte [esp + 0x50], 7
lea ecx, [edi + 0x14]
push ecx
push eax
lea edx, [esp + 0x28]
push edx
call fcn.004060a0
add esp, 0xc
mov bl, 8
mov byte [esp + 0x50], bl
push 0x468acc
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00406150
add esp, 0xc
mov byte [esp + 0x50], 9
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00406510
mov byte [esp + 0x50], bl
lea ecx, [esp + 0x24]
call fcn.00406ed0
mov byte [esp + 0x50], 7
lea ecx, [esp + 0x20]
call fcn.00406ed0
mov byte [esp + 0x50], 6
lea ecx, [esp + 0x1c]
call fcn.00406ed0
mov byte [esp + 0x50], 5
lea ecx, [esp + 0x28]
call fcn.00406ed0
mov byte [esp + 0x50], 4
lea ecx, [esp + 0x2c]
call fcn.00406ed0
mov byte [esp + 0x50], 3
lea ecx, [esp + 0x30]
call fcn.00406ed0
mov byte [esp + 0x50], 2
lea ecx, [esp + 0x34]
call fcn.00406ed0
mov byte [esp + 0x50], 1
lea ecx, [esp + 0x38]
call fcn.00406ed0
cmp byte [edi + 0x31], 0
lea ecx, [esp + 0x18]
je 0x402417
push str.___instype:__net_
jmp 0x40241c
push str.___instype:__single_
call fcn.00405f20
push 0x468bb0
lea ecx, [esp + 0x1c]
call fcn.00405f20
push 0x468bb4
lea ecx, [esp + 0x20]
call fcn.00406e00
mov byte [esp + 0x50], 0xa
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00403f40
mov byte [esp + 0x50], 1
lea ecx, [esp + 0x1c]
call fcn.00406ed0
push str.computer_reboot
lea ecx, [esp + 0x20]
call fcn.00406e00
mov byte [esp + 0x50], 0xb
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.004160f0
add esp, 8
mov byte [esp + 0x50], 0xc
push eax
call fcn.00403e70
test eax, eax
sete bl
mov byte [esp + 0x50], 0xb
lea ecx, [esp + 0x38]
call fcn.00406ed0
mov byte [esp + 0x50], 1
lea ecx, [esp + 0x1c]
call fcn.00406ed0
test bl, bl
je 0x40253f
push str.computer_reboot_manual
lea ecx, [esp + 0x20]
call fcn.00406e00
mov bl, 0xd
mov byte [esp + 0x50], bl
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.004160f0
add esp, 8
mov byte [esp + 0x50], 0xe
mov eax, dword [eax]
push 0
push 0
push eax
call fcn.0042f5c8
mov byte [esp + 0x50], bl
lea ecx, [esp + 0x38]
call fcn.00406ed0
mov byte [esp + 0x50], 1
lea ecx, [esp + 0x1c]
call fcn.00406ed0
call fcn.004066d0
mov ecx, dword [eax + 0x20]
push 0
push 0
push 0x12
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov byte [esp + 0x50], 0
lea ecx, [esp + 0x18]
call fcn.00406ed0
mov dword [esp + 0x50], 0xffffffff
lea edx, [esp + 0x3c]
push edx
jmp 0x402c7d
mov byte [esp + 0x50], 0
lea ecx, [esp + 0x18]
call fcn.00406ed0
jmp 0x402b6a
mov eax, dword [edi + 0x10]
lea ebx, [edi + 0x10]
push eax
mov byte [edi + 5], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x402628
push ebx
lea eax, [esp + 0x3c]
push str.creating
push eax
call fcn.00406220
add esp, 0xc
mov byte [esp + 0x50], 0xf
push eax
lea ecx, [esp + 0x40]
call fcn.00411500
mov byte [esp + 0x50], 0
lea ecx, [esp + 0x38]
call fcn.00406ed0
mov eax, dword [ebx]
push 0
push eax
push 0
call esi
test eax, eax
je 0x402628
push str.install_error_creating_dir
lea ecx, [esp + 0x20]
call fcn.00406e00
mov byte [esp + 0x50], 0x10
push ebx
lea ecx, [esp + 0x38]
push str.error_creating
push ecx
call fcn.00406220
add esp, 0xc
mov esi, eax
mov byte [esp + 0x50], 0x11
push ebx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.00416150
add esp, 0xc
mov byte [esp + 0x50], 0x12
push esi
push eax
lea ecx, [esp + 0x44]
call fcn.00411190
mov byte [esp + 0x50], 0x11
lea ecx, [esp + 0x38]
call fcn.00406ed0
mov byte [esp + 0x50], 0x10
lea ecx, [esp + 0x34]
call fcn.00406ed0
mov byte [esp + 0x50], 0
lea ecx, [esp + 0x1c]
jmp 0x402c6b
push str.default_
lea edx, [esp + 0x1c]
push ebx
push edx
call fcn.00406150
add esp, 0xc
mov byte [esp + 0x50], 0x13
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40273c
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x3c]
push str.creating
push edx
call fcn.00406220
add esp, 0xc
mov byte [esp + 0x50], 0x14
push eax
lea ecx, [esp + 0x40]
call fcn.00411500
mov byte [esp + 0x50], 0x13
lea ecx, [esp + 0x38]
call fcn.00406ed0
mov eax, dword [esp + 0x18]
push 0
push eax
push 0
call esi
test eax, eax
je 0x40273c
push str.install_error_creating_dir
lea ecx, [esp + 0x20]
call fcn.00406e00
mov byte [esp + 0x50], 0x15
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x38]
push str.error_creating
push edx
call fcn.00406220
add esp, 0xc
mov esi, eax
mov bl, 0x16
mov byte [esp + 0x50], bl
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.00416150
add esp, 0xc
mov byte [esp + 0x50], 0x17
push esi
push eax
lea ecx, [esp + 0x44]
call fcn.00411190
mov byte [esp + 0x50], bl
lea ecx, [esp + 0x38]
call fcn.00406ed0
mov byte [esp + 0x50], 0x15
lea ecx, [esp + 0x34]
call fcn.00406ed0
mov byte [esp + 0x50], 0x13
lea ecx, [esp + 0x1c]
call fcn.00406ed0
mov byte [esp + 0x50], 0
lea ecx, [esp + 0x18]
call fcn.00406ed0
mov dword [esp + 0x50], 0xffffffff
lea eax, [esp + 0x3c]
push eax
jmp 0x402c7d
mov edx, dword [edi]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0x3c]
push eax
mov ecx, edi
call edx
mov esi, dword [edi + 0x90]
test esi, esi
setne al
mov byte [esp + 0x16], 1
test al, al
je 0x402799
mov byte [esp + 0x17], 0
mov eax, esi
test esi, esi
je 0x4028c0
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
mov esi, dword [esi]
lea edx, [esp + 0x17]
push edx
call eax
and byte [esp + 0x16], al
je 0x40278c
test esi, esi
je 0x40278c
mov al, 1
jmp 0x40278e
xor al, al
mov cl, byte [esp + 0x17]
or byte [edi + 5], cl
test al, al
jne 0x40275e
push edi
call fcn.00401ad0
mov al, byte [esp + 0x16]
test al, al
sete dl
mov byte [edi + 8], dl
test al, al
je 0x402b97
push edi
call fcn.00403720
cmp byte [edi + 0x31], 0
je 0x4028c5
push str.install_prepare_netclient_installation
lea ecx, [esp + 0x28]
call fcn.00406e00
mov byte [esp + 0x50], 0x18
push str.install_prepare_netclient_installation
lea ecx, [esp + 0x24]
call fcn.00406e00
mov bl, 0x19
mov byte [esp + 0x50], bl
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.004160f0
add esp, 8
mov byte [esp + 0x50], 0x1a
lea edx, [esp + 0x24]
push edx
push eax
lea edi, [esp + 0x44]
call fcn.00411260
mov byte [esp + 0x50], bl
lea ecx, [esp + 0x38]
call fcn.00406ed0
mov byte [esp + 0x50], 0x18
lea ecx, [esp + 0x20]
call fcn.00406ed0
mov byte [esp + 0x50], 0x13
lea ecx, [esp + 0x24]
call fcn.00406ed0
mov esi, dword [esp + 0x1c]
push esi
call fcn.004031c0
push str.install_prepare_alladin_serverdongle_installation
lea ecx, [esp + 0x24]
call fcn.00406e00
mov byte [esp + 0x50], 0x1b
push str.install_prepare_alladin_serverdongle_installation
lea ecx, [esp + 0x28]
call fcn.00406e00
mov bl, 0x1c
mov byte [esp + 0x50], bl
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.004160f0
add esp, 8
mov byte [esp + 0x50], 0x1d
lea edx, [esp + 0x20]
push edx
push eax
call fcn.00411260
mov byte [esp + 0x50], bl
lea ecx, [esp + 0x38]
call fcn.00406ed0
mov byte [esp + 0x50], 0x1b
lea ecx, [esp + 0x24]
call fcn.00406ed0
mov byte [esp + 0x50], 0x13
lea ecx, [esp + 0x20]
call fcn.00406ed0
push esi
call fcn.004038e0
jmp 0x4029a3
call fcn.0042df48
push str.install_create_shortcuts
lea ecx, [esp + 0x24]
call fcn.00406e00
mov byte [esp + 0x50], 0x1e
push str.install_create_shortcuts
lea ecx, [esp + 0x28]
call fcn.00406e00
mov byte [esp + 0x50], 0x1f
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.004160f0
add esp, 8
mov byte [esp + 0x50], 0x20
lea edx, [esp + 0x20]
push edx
push eax
lea edi, [esp + 0x44]
call fcn.00411260
mov byte [esp + 0x50], 0x1f
lea ecx, [esp + 0x38]
call fcn.00406ed0
mov byte [esp + 0x50], 0x1e
lea ecx, [esp + 0x24]
call fcn.00406ed0
mov byte [esp + 0x50], 0x13
lea ecx, [esp + 0x20]
call fcn.00406ed0
mov edi, ebx
call fcn.00402cf0
lea ecx, [esp + 0x3c]
mov edx, ebx
call fcn.00404210
test al, al
jne 0x4029a3
push str.firewall_configuration_failed
lea ecx, [esp + 0x28]
call fcn.00406e00
mov bl, 0x21
mov byte [esp + 0x50], bl
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.004160f0
add esp, 8
mov byte [esp + 0x50], 0x22
mov eax, dword [eax]
push 0
push 0
push eax
call fcn.0042f5c8
mov byte [esp + 0x50], bl
lea ecx, [esp + 0x38]
call fcn.00406ed0
mov byte [esp + 0x50], 0x13
lea ecx, [esp + 0x24]
call fcn.00406ed0
push str.install_finished_successfully
lea ecx, [esp + 0x24]
call fcn.00406e00
mov byte [esp + 0x50], 0x27
push str.install_finished_successfully
lea ecx, [esp + 0x28]
call fcn.00406e00
mov bl, 0x28
mov byte [esp + 0x50], bl
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.004160f0
add esp, 8
mov byte [esp + 0x50], 0x29
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [esp + 0x44]
push edx
call fcn.004113c0
mov byte [esp + 0x50], bl
lea ecx, [esp + 0x38]
call fcn.00406ed0
mov byte [esp + 0x50], 0x27
lea ecx, [esp + 0x24]
call fcn.00406ed0
mov byte [esp + 0x50], 0x13
lea ecx, [esp + 0x20]
call fcn.00406ed0
mov eax, dword [esp + 0x1c]
cmp byte [eax + 5], 0
je 0x402b58
push str.install_computer_reboot
lea ecx, [esp + 0x28]
call fcn.00406e00
mov bl, 0x2a
mov byte [esp + 0x50], bl
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.004160f0
add esp, 8
mov byte [esp + 0x50], 0x2b
push eax
lea ecx, [esp + 0x40]
call fcn.00411500
mov byte [esp + 0x50], bl
lea ecx, [esp + 0x38]
call fcn.00406ed0
mov byte [esp + 0x50], 0x13
lea ecx, [esp + 0x24]
call fcn.00406ed0
push str.computer_reboot
lea ecx, [esp + 0x28]
call fcn.00406e00
mov byte [esp + 0x50], 0x2c
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.004160f0
add esp, 8
mov byte [esp + 0x50], 0x2d
push eax
call fcn.00403e70
test eax, eax
sete bl
mov byte [esp + 0x50], 0x2c
lea ecx, [esp + 0x38]
call fcn.00406ed0
mov byte [esp + 0x50], 0x13
lea ecx, [esp + 0x24]
call fcn.00406ed0
test bl, bl
je 0x402b58
push str.computer_reboot_manual
lea ecx, [esp + 0x28]
call fcn.00406e00
mov bl, 0x2e
mov byte [esp + 0x50], bl
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.004160f0
add esp, 8
mov byte [esp + 0x50], 0x2f
mov eax, dword [eax]
push 0
push 0
push eax
call fcn.0042f5c8
mov byte [esp + 0x50], bl
lea ecx, [esp + 0x38]
call fcn.00406ed0
mov byte [esp + 0x50], 0x13
lea ecx, [esp + 0x24]
call fcn.00406ed0
call fcn.004066d0
mov ecx, dword [eax + 0x20]
push 0
push 0
push 0x12
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov byte [esp + 0x50], 0
lea ecx, [esp + 0x18]
call fcn.00406ed0
mov dword [esp + 0x50], 0xffffffff
lea edx, [esp + 0x3c]
push edx
jmp 0x402c7d
mov byte [esp + 0x50], 0
lea ecx, [esp + 0x18]
call fcn.00406ed0
mov edi, dword [esp + 0x1c]
mov byte [edi + 4], 1
mov dword [esp + 0x50], 0xffffffff
lea eax, [esp + 0x3c]
push eax
call fcn.00402ca0
mov al, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.install_error
lea ecx, [esp + 0x24]
call fcn.00406e00
mov byte [esp + 0x50], 0x23
push str.install_error
lea ecx, [esp + 0x28]
call fcn.00406e00
mov bl, 0x24
mov byte [esp + 0x50], bl
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.004160f0
add esp, 8
mov byte [esp + 0x50], 0x25
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [esp + 0x44]
push edx
call fcn.004113c0
mov byte [esp + 0x50], bl
lea ecx, [esp + 0x38]
call fcn.00406ed0
mov byte [esp + 0x50], 0x23
lea ecx, [esp + 0x24]
call fcn.00406ed0
mov byte [esp + 0x50], 0x13
lea ecx, [esp + 0x20]
call fcn.00406ed0
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.004115c0
mov byte [esp + 0x50], 0x26
mov esi, dword [eax]
call fcn.0042f665
test eax, eax
je 0x402c3a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
test eax, eax
jne 0x402c3e
xor eax, eax
jmp 0x402c41
mov eax, dword [eax + 0x20]
push 1
push 0
push 0
push esi
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov byte [esp + 0x50], 0x13
lea ecx, [esp + 0x38]
call fcn.00406ed0
mov byte [esp + 0x50], 0
lea ecx, [esp + 0x18]
call fcn.00406ed0
mov dword [esp + 0x50], 0xffffffff
lea ecx, [esp + 0x3c]
push ecx
call fcn.00402ca0
xor al, al
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4