Function at 0x405e69
Capabilities:
Check os version
Create process on windows
Hide graphical window

Disassembly:
push 0x22c
mov eax, 0x452efb
call fcn.00442764
mov ebx, dword [ebp + 8]
xor esi, esi
cmp dword [ebp + 0xc], 0x1000500
mov dword [ebp - 0x1e8], ebx
mov dword [ebp - 0x1f0], esi
jne 0x406111
call dword [sym.imp.KERNEL32.DLL_GetVersion]
movzx eax, al
cmp eax, 5
jbe 0x406111
push 0x6a
lea ecx, [ebp - 0x74]
call fcn.00402a2e
mov dword [ebp - 4], esi
cmp dword [ebp - 0x58], 8
mov eax, dword [ebp - 0x6c]
jae 0x405ec1
lea eax, [ebp - 0x6c]
push 0x14
push 0x460204
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ebx, vtable.TString.0
cmp eax, 6
jne 0x4060e7
lea ecx, [ebp - 0x34]
call fcn.00401e56
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x1c]
dec edi
lea eax, [ebp - 0x30]
call fcn.00401285
cmp word [eax], 0x5c
jne 0x405f54
mov eax, dword [ebp - 0x1c]
dec eax
push eax
push 0
lea eax, [ebp - 0x30]
push eax
lea esi, [ebp - 0x238]
call fcn.004012fd
push eax
lea edi, [ebp - 0x218]
mov byte [ebp - 4], 2
call fcn.00401040
mov eax, edi
lea esi, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.004011e0
push 0
push 1
lea esi, [ebp - 0x214]
mov dword [ebp - 0x218], ebx
call fcn.0040146e
push 0
push 1
lea esi, [ebp - 0x238]
call fcn.0040146e
lea esi, [ebp - 0x90]
call fcn.00401225
mov dword [ebp - 0x94], ebx
lea esi, [ebp - 0xb0]
call fcn.00401225
mov dword [ebp - 0xb4], ebx
lea esi, [ebp - 0x50]
call fcn.00401225
mov dword [ebp - 0x54], ebx
push 1
lea eax, [ebp - 0x1f0]
push eax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x30]
mov dword [ebp - 0x1f0], 0x5c
call fcn.00402ddb
inc eax
push eax
mov dword [ebp - 0x1f0], eax
push 0
lea eax, [ebp - 0x30]
push eax
lea esi, [ebp - 0x238]
call fcn.004012fd
push eax
lea edi, [ebp - 0x218]
mov byte [ebp - 4], 7
call fcn.00401040
mov eax, edi
lea esi, [ebp - 0x94]
mov byte [ebp - 4], 8
call fcn.004011e0
push 0
push 1
lea esi, [ebp - 0x214]
mov dword [ebp - 0x218], ebx
call fcn.0040146e
push 0
push 1
lea esi, [ebp - 0x238]
mov byte [ebp - 4], 6
call fcn.0040146e
push 0xffffffffffffffff
push dword [ebp - 0x1f0]
lea eax, [ebp - 0x30]
push eax
lea esi, [ebp - 0x238]
call fcn.004012fd
push eax
lea edi, [ebp - 0x218]
mov byte [ebp - 4], 9
call fcn.00401040
mov eax, edi
lea esi, [ebp - 0xb4]
mov byte [ebp - 4], 0xa
call fcn.004011e0
xor edi, edi
push 0
inc edi
push edi
lea esi, [ebp - 0x214]
mov dword [ebp - 0x218], ebx
call fcn.0040146e
push 0
push edi
lea esi, [ebp - 0x238]
call fcn.0040146e
cmp dword [ebp - 0x38], 8
mov edx, dword [ebp - 0x4c]
jae 0x40606b
lea edx, [ebp - 0x4c]
cmp dword [ebp - 0x98], 8
mov eax, dword [ebp - 0xac]
jae 0x406080
lea eax, [ebp - 0xac]
cmp dword [ebp - 0x78], 8
mov ecx, dword [ebp - 0x8c]
jae 0x406092
lea ecx, [ebp - 0x8c]
push 0
push edi
push edx
push ecx
call fcn.00408e7f
add esp, 0x10
push 0
push edi
lea esi, [ebp - 0x50]
mov dword [ebp - 0x54], ebx
call fcn.0040146e
push 0
push edi
lea esi, [ebp - 0xb0]
mov dword [ebp - 0xb4], ebx
call fcn.0040146e
push 0
push edi
lea esi, [ebp - 0x90]
mov dword [ebp - 0x94], ebx
call fcn.0040146e
push 0
push edi
lea esi, [ebp - 0x30]
mov dword [ebp - 0x34], ebx
call fcn.0040146e
xor esi, esi
jmp 0x4060ea
xor edi, edi
inc edi
push esi
push edi
push 0x111
push dword [ebp - 0x1e8]
call dword [sym.imp.USER32.dll_PostMessageW]
push esi
push edi
lea esi, [ebp - 0x70]
mov dword [ebp - 0x74], ebx
call fcn.0040146e
xor eax, eax
jmp 0x406590
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3e9
push ebx
call edi
push esi
push 0x64
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x3f0
push ebx
call edi
mov dword [ebp - 0x1f8], eax
call fcn.00402781
mov dword [ebp - 0x21c], eax
cmp eax, esi
je 0x40617c
push 0x6b
lea ecx, [ebp - 0x74]
call fcn.00402a2e
cmp dword [ebp - 0x58], 8
mov eax, dword [ebp - 0x6c]
jae 0x406161
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x1f8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ebx, vtable.TString.0
push esi
mov dword [ebp - 0x74], ebx
lea esi, [ebp - 0x70]
jmp 0x4061f9
lea esi, [ebp - 0x30]
call fcn.00401225
mov ebx, vtable.TString.0
mov dword [ebp - 0x34], ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0xb
lea ecx, [ebp - 0x218]
test al, 1
je 0x4061ad
push 0x6c
call fcn.00402a2e
mov byte [ebp - 4], 0xc
jmp 0x4061b7
push ecx
call fcn.0040280f
mov byte [ebp - 4], 0xd
lea esi, [ebp - 0x34]
call fcn.004011e0
push 0
push 1
lea esi, [ebp - 0x214]
mov dword [ebp - 0x218], ebx
call fcn.0040146e
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4061e0
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x1f8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x34], ebx
push 0
lea esi, [ebp - 0x30]
push 1
call fcn.0040146e
push 0x3f1
push dword [ebp - 0x1e8]
call edi
xor esi, esi
push esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x66
push dword [ebp - 0x1e8]
call edi
push esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 2
push dword [ebp - 0x1e8]
call edi
push 0x78
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0x1f4], eax
call fcn.00402a2e
mov dword [ebp - 4], 0xe
cmp dword [ebp - 0xb8], 8
mov eax, dword [ebp - 0xcc]
jae 0x406262
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0x1f4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 1
push 0xfffffffffffffff4
push dword [ebp - 0x1f4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push dword [ebp - 0x1f4]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp + 0xc]
and eax, 1
mov dword [ebp - 0x1f4], eax
je 0x4062ba
lea eax, [ebp - 0x218]
call fcn.004023f4
mov dword [ebp - 0x1f0], 1
mov byte [ebp - 0x1e9], 1
cmp dword [eax + 0x18], esi
ja 0x4062c1
mov byte [ebp - 0x1e9], 0
test byte [ebp - 0x1f0], 1
je 0x4062e0
push esi
push 1
lea esi, [ebp - 0x214]
mov dword [ebp - 0x218], ebx
call fcn.0040146e
xor esi, esi
cmp byte [ebp - 0x1e9], 0
je 0x406486
lea eax, [ebp - 0x74]
call fcn.004023f4
lea edi, [ebp - 0x118]
mov dword [ebp - method.CommandLineParser.virtual_0], vtable.CommandLineParser.0
call fcn.0040102d
lea edi, [ebp - 0xf8]
call fcn.0040102d
push 0x22
pop eax
mov word [ebp - 0xd8], ax
push 8
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x6c]
pop edi
cmp dword [ebp - 0x58], edi
jae 0x406331
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004010df
lea ecx, [ebp - 0x94]
lea eax, [ebp - 0x11c]
call fcn.004011fb
lea ecx, [ebp - 0x54]
lea eax, [ebp - 0x11c]
mov byte [ebp - 4], 0x11
call fcn.00401210
lea eax, [ebp - 0x1e4]
push eax
mov byte [ebp - 4], 0x12
call fcn.004044fa
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x1e4]
push eax
mov byte [ebp - 4], 0x13
call fcn.004048a0
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x1e4]
push eax
call fcn.004048a0
push 6
push dword [ebp - 0x1e8]
call dword [sym.imp.USER32.dll_ShowWindow]
xor esi, esi
push esi
push dword [ebp - 0x1e8]
call dword [sym.imp.USER32.dll_EnableWindow]
lea eax, [ebp - 0x218]
push eax
call fcn.00402337
mov ecx, dword [ebp - 0x4c]
cmp dword [ebp - 0x38], edi
jae 0x4063cc
lea ecx, [ebp - 0x4c]
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x1f0], ecx
cmp dword [ebp - 0x78], edi
jae 0x4063e3
lea edx, [ebp - 0x8c]
cmp dword [eax + 0x1c], edi
jb 0x4063ed
mov ecx, dword [eax + 8]
jmp 0x4063f0
lea ecx, [eax + 8]
xor edi, edi
inc edi
push edi
push esi
push dword [ebp - 0x1f0]
mov eax, edx
push ecx
call fcn.00408e7f
add esp, 0x10
push esi
push edi
lea esi, [ebp - 0x214]
mov dword [ebp - 0x218], ebx
call fcn.0040146e
push edi
push dword [ebp - 0x1e8]
call dword [sym.imp.USER32.dll_EnableWindow]
push 9
push dword [ebp - 0x1e8]
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [ebp - 0x1e4]
call fcn.00404860
push 0
push edi
lea esi, [ebp - 0x50]
mov dword [ebp - 0x54], ebx
call fcn.0040146e
push 0
push edi
lea esi, [ebp - 0x90]
mov dword [ebp - 0x94], ebx
call fcn.0040146e
lea ecx, [ebp - 0x11c]
call fcn.004010c5
push 0
mov byte [ebp - 4], 0xe
push edi
lea esi, [ebp - 0x70]
mov dword [ebp - 0x74], ebx
call fcn.0040146e
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
xor esi, esi
push 0x3eb
push dword [ebp - 0x1e8]
call edi
push esi
push esi
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x4064fb
cmp dword [ebp - 0x21c], esi
jne 0x4064fb
cmp dword [ebp - 0x1f4], esi
je 0x4064fb
lea eax, [ebp - 0x218]
push eax
call fcn.00402337
cmp dword [eax + 0x1c], 8
jb 0x4064cc
mov eax, dword [eax + 8]
jmp 0x4064cf
add eax, 8
push 0xa
push eax
push esi
push esi
push str.open
push dword [ebp - 0x1e8]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push esi
push 1
lea esi, [ebp - 0x214]
mov dword [ebp - 0x218], ebx
call fcn.0040146e
xor esi, esi
cmp dword [0x46d424], esi
je 0x406558
push 0x6f
lea ecx, [ebp - 0x54]
call fcn.00402a2e
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x406519
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x1f8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
push dword [ebp - 0x1e8]
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
push 0xc8
push esi
push dword [ebp - 0x1e8]
call dword [sym.imp.USER32.dll_SetTimer]
push esi
push 1
lea esi, [ebp - 0x50]
mov dword [ebp - 0x54], ebx
call fcn.0040146e
xor esi, esi
jmp 0x406579
cmp dword [0x46d420], esi
je 0x406574
push esi
push 1
push 0x111
push dword [ebp - 0x1e8]
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.004027c1
push esi
push 1
lea esi, [ebp - 0xd0]
mov dword [ebp - 0xd4], ebx
call fcn.0040146e
xor eax, eax
inc eax
call fcn.004427e7
ret