Function at 0x405e70
Capabilities:
Check os version
Create process on windows

Disassembly:
push 0x22c
mov eax, 0x452448
call fcn.00441ba8
mov ebx, dword [ebp + 8]
xor edi, edi
cmp dword [ebp + 0xc], 0x1000500
mov dword [ebp - 0x1e8], ebx
mov dword [ebp - 0x1f0], edi
jne 0x406102
call dword [sym.imp.KERNEL32.DLL_GetVersion]
movzx eax, al
cmp eax, 5
jbe 0x406102
push 0x6a
lea ecx, [ebp - 0x54]
call fcn.00402a20
mov dword [ebp - 4], edi
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x405ec8
lea eax, [ebp - 0x4c]
push 0x14
push 0x45f1f0
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ebx, vtable.TString.0
cmp eax, 6
jne 0x4060d9
lea ecx, [ebp - 0x34]
call fcn.00401e4a
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x1c]
dec edi
lea eax, [ebp - 0x30]
call fcn.0040127b
cmp word [eax], 0x5c
jne 0x405f5b
mov eax, dword [ebp - 0x1c]
dec eax
push eax
push 0
lea eax, [ebp - 0x30]
push eax
lea esi, [ebp - 0x238]
call fcn.004012f3
push eax
lea edi, [ebp - 0x214]
mov byte [ebp - 4], 2
call fcn.00401047
mov eax, edi
lea esi, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.004011e9
push 0
push 1
lea esi, [ebp - 0x210]
mov dword [ebp - 0x214], ebx
call fcn.00401464
push 0
push 1
lea esi, [ebp - 0x238]
call fcn.00401464
lea esi, [ebp - 0x94]
call fcn.0040102d
lea esi, [ebp - 0x74]
call fcn.0040102d
lea esi, [ebp - 0xb4]
call fcn.0040102d
push 1
lea eax, [ebp - 0x1f0]
push eax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x30]
mov dword [ebp - 0x1f0], 0x5c
call fcn.00402dd4
inc eax
push eax
mov dword [ebp - 0x1f0], eax
push 0
lea eax, [ebp - 0x30]
push eax
lea esi, [ebp - 0x238]
call fcn.004012f3
push eax
lea edi, [ebp - 0x214]
mov byte [ebp - 4], 7
call fcn.00401047
mov eax, edi
lea esi, [ebp - 0x94]
mov byte [ebp - 4], 8
call fcn.004011e9
push 0
push 1
lea esi, [ebp - 0x210]
mov dword [ebp - 0x214], ebx
call fcn.00401464
push 0
push 1
lea esi, [ebp - 0x238]
mov byte [ebp - 4], 6
call fcn.00401464
push 0xffffffffffffffff
push dword [ebp - 0x1f0]
lea eax, [ebp - 0x30]
push eax
lea esi, [ebp - 0x238]
call fcn.004012f3
push eax
lea edi, [ebp - 0x214]
mov byte [ebp - 4], 9
call fcn.00401047
mov eax, edi
lea esi, [ebp - 0x74]
mov byte [ebp - 4], 0xa
call fcn.004011e9
xor edi, edi
push edi
push 1
lea esi, [ebp - 0x210]
mov dword [ebp - 0x214], ebx
call fcn.00401464
push edi
push 1
lea esi, [ebp - 0x238]
call fcn.00401464
cmp dword [ebp - 0x98], 8
mov edx, dword [ebp - 0xac]
jae 0x406068
lea edx, [ebp - 0xac]
cmp dword [ebp - 0x58], 8
mov eax, dword [ebp - 0x6c]
jae 0x406074
lea eax, [ebp - 0x6c]
cmp dword [ebp - 0x78], 8
mov ecx, dword [ebp - 0x8c]
jae 0x406086
lea ecx, [ebp - 0x8c]
push edi
push 1
push edx
push ecx
call fcn.00408dd7
add esp, 0x10
push edi
push 1
lea esi, [ebp - 0xb0]
mov dword [ebp - 0xb4], ebx
call fcn.00401464
push edi
push 1
lea esi, [ebp - 0x70]
mov dword [ebp - 0x74], ebx
call fcn.00401464
push edi
push 1
lea esi, [ebp - 0x90]
mov dword [ebp - 0x94], ebx
call fcn.00401464
push edi
push 1
lea esi, [ebp - 0x30]
mov dword [ebp - 0x34], ebx
call fcn.00401464
xor edi, edi
push edi
push 1
push 0x111
push dword [ebp - 0x1e8]
call dword [sym.imp.USER32.dll_PostMessageW]
push edi
push 1
lea esi, [ebp - 0x50]
mov dword [ebp - 0x54], ebx
call fcn.00401464
xor eax, eax
jmp 0x406569
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3e9
push ebx
call esi
push edi
push 0x64
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x3f0
push ebx
call esi
mov dword [ebp - 0x1f4], eax
call fcn.00402773
mov dword [ebp - 0x218], eax
cmp eax, edi
je 0x40616c
push 0x6b
lea ecx, [ebp - 0x54]
call fcn.00402a20
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x406152
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x1f4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ebx, vtable.TString.0
mov dword [ebp - 0x54], ebx
lea esi, [ebp - 0x50]
jmp 0x4061e3
lea esi, [ebp - 0x34]
call fcn.0040102d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0xb
lea ecx, [ebp - 0x214]
test al, 1
je 0x406195
push 0x6c
call fcn.00402a20
mov byte [ebp - 4], 0xc
jmp 0x40619f
push ecx
call fcn.00402801
mov byte [ebp - 4], 0xd
lea esi, [ebp - 0x34]
call fcn.004011e9
push edi
mov ebx, vtable.TString.0
push 1
lea esi, [ebp - 0x210]
mov dword [ebp - 0x214], ebx
call fcn.00401464
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4061cc
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x1f4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x34], ebx
lea esi, [ebp - 0x30]
push edi
push 1
call fcn.00401464
push 0x3f1
push dword [ebp - 0x1e8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push edi
push eax
call esi
push 0x66
push dword [ebp - 0x1e8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push eax
call esi
push 2
push dword [ebp - 0x1e8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x78
lea ecx, [ebp - 0xd4]
mov esi, eax
call fcn.00402a20
mov dword [ebp - 4], 0xe
cmp dword [ebp - 0xb8], 8
mov eax, dword [ebp - 0xcc]
jae 0x406251
lea eax, [ebp - 0xcc]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 1
push 0xfffffffffffffff4
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push esi
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp + 0xc]
xor esi, esi
inc esi
and eax, esi
mov dword [ebp - 0x21c], eax
je 0x406298
lea eax, [ebp - 0x214]
call fcn.004023e6
mov dword [ebp - 0x1f0], esi
mov byte [ebp - 0x1e9], 1
cmp dword [eax + 0x18], edi
ja 0x40629f
mov byte [ebp - 0x1e9], 0
test byte [ebp - 0x1f0], 1
je 0x4062bb
push edi
push esi
lea esi, [ebp - 0x210]
mov dword [ebp - 0x214], ebx
call fcn.00401464
cmp byte [ebp - 0x1e9], 0
je 0x40644d
lea eax, [ebp - 0x54]
call fcn.004023e6
lea esi, [ebp - 0x118]
mov dword [ebp - method.CommandLineParser.virtual_0], vtable.CommandLineParser.0
call fcn.0040102d
lea esi, [ebp - 0xf8]
call fcn.0040102d
push 0x22
pop eax
mov word [ebp - 0xd8], ax
mov byte [ebp - 4], 0x10
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x40630a
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004010e6
lea ecx, [ebp - 0x74]
lea eax, [ebp - 0x11c]
call fcn.00401204
lea ecx, [ebp - 0x94]
lea eax, [ebp - 0x11c]
mov byte [ebp - 4], 0x11
call fcn.00401219
lea eax, [ebp - 0x1e4]
push eax
mov byte [ebp - 4], 0x12
call fcn.0040451a
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x1e4]
push eax
mov byte [ebp - 4], 0x13
call fcn.004048c1
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x1e4]
push eax
call fcn.004048c1
push 6
push dword [ebp - 0x1e8]
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
push dword [ebp - 0x1e8]
call dword [sym.imp.USER32.dll_EnableWindow]
lea eax, [ebp - 0x214]
push eax
call fcn.00402329
cmp dword [ebp - 0x78], 8
mov esi, dword [ebp - 0x8c]
jae 0x4063aa
lea esi, [ebp - 0x8c]
cmp dword [ebp - 0x58], 8
mov edx, dword [ebp - 0x6c]
jae 0x4063b6
lea edx, [ebp - 0x6c]
cmp dword [eax + 0x1c], 8
jb 0x4063c1
mov ecx, dword [eax + 8]
jmp 0x4063c4
lea ecx, [eax + 8]
push 1
push edi
push esi
push ecx
mov eax, edx
call fcn.00408dd7
add esp, 0x10
push edi
push 1
lea esi, [ebp - 0x210]
mov dword [ebp - 0x214], ebx
call fcn.00401464
push 1
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.00404881
push edi
push 1
lea esi, [ebp - 0x90]
mov dword [ebp - 0x94], ebx
call fcn.00401464
push edi
push 1
lea esi, [ebp - 0x70]
mov dword [ebp - 0x74], ebx
call fcn.00401464
lea ecx, [ebp - 0x11c]
call fcn.004010cc
push edi
mov byte [ebp - 4], 0xe
push 1
lea esi, [ebp - 0x50]
mov dword [ebp - 0x54], ebx
call fcn.00401464
push 0x3eb
push dword [ebp - 0x1e8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push edi
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x4064c4
cmp dword [ebp - 0x218], edi
jne 0x4064c4
cmp dword [ebp - 0x21c], edi
je 0x4064c4
lea eax, [ebp - 0x214]
push eax
call fcn.00402329
cmp dword [eax + 0x1c], 8
jb 0x406497
mov eax, dword [eax + 8]
jmp 0x40649a
add eax, 8
push 0xa
push eax
push edi
push edi
push str.open
push dword [ebp - 0x1e8]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push edi
push 1
lea esi, [ebp - 0x210]
mov dword [ebp - 0x214], ebx
call fcn.00401464
cmp dword [0x46c41c], edi
je 0x406531
push 0x6f
lea ecx, [ebp - 0xb4]
call fcn.00402a20
cmp dword [ebp - 0x98], 8
mov eax, dword [ebp - 0xac]
jae 0x4064ee
lea eax, [ebp - 0xac]
push eax
push dword [ebp - 0x1f4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push edi
push dword [ebp - 0x1e8]
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
push 0xc8
push edi
push dword [ebp - 0x1e8]
call dword [sym.imp.USER32.dll_SetTimer]
push edi
push 1
lea esi, [ebp - 0xb0]
mov dword [ebp - 0xb4], ebx
call fcn.00401464
jmp 0x406552
cmp dword [0x46c418], edi
je 0x40654d
push edi
push 1
push 0x111
push dword [ebp - 0x1e8]
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.004027b3
push edi
push 1
lea esi, [ebp - 0xd0]
mov dword [ebp - 0xd4], ebx
call fcn.00401464
xor eax, eax
inc eax
call fcn.00441c2b
ret