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

Disassembly:
push 0xffffffffffffffff
push 0x431937
mov eax, dword fs:[0]
push eax
sub esp, 0x6c0
mov eax, dword [0x442504]
xor eax, esp
mov dword [esp + 0x6bc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x442504]
xor eax, esp
push eax
lea eax, [esp + 0x6d4]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, ecx
mov edi, 0xf
mov dword [esp + 0x2c], esi
mov dword [esp + 0xa8], edi
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
push 0x401b00
push 0x401ae0
push 0x12
push 0x1c
lea eax, [esp + 0xd8]
push eax
mov dword [esp + 0x6f0], ebx
call fcn.0041f0ac
mov dword [esp + 0x8c], edi
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
lea ecx, [esp + 0x90]
push ecx
mov ecx, esi
mov byte [esp + 0x6e0], 2
call fcn.00402240
test eax, eax
jne 0x4026bc
mov esi, 0x10
cmp dword [esp + 0x8c], esi
jb 0x402667
mov edx, dword [esp + 0x78]
push edx
call fcn.00402fa8
add esp, 4
push 0x401b00
push 0x12
push 0x1c
lea eax, [esp + 0xd4]
push eax
mov dword [esp + 0x9c], edi
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
mov byte [esp + 0x6ec], bl
call fcn.0041f049
cmp dword [esp + 0xa8], esi
jb 0x4026b2
mov ecx, dword [esp + 0x94]
push ecx
call fcn.00402fa8
add esp, 4
mov eax, 0x4e24
jmp 0x402acc
mov ecx, dword [esp + 0xa8]
cmp ecx, 0x10
mov ebp, dword [esp + 0x94]
mov edx, ebp
jae 0x4026d8
lea edx, [esp + 0x94]
lea esi, [esp + 0x3c4]
nop
mov al, byte [edx]
mov byte [esi], al
add edx, 1
add esi, 1
cmp al, bl
jne 0x4026e0
cmp ecx, 0x10
mov edx, ebp
jae 0x4026fc
lea edx, [esp + 0x94]
lea esi, [esp + 0x5cc]
mov al, byte [edx]
mov byte [esi], al
add edx, 1
add esi, 1
cmp al, bl
jne 0x402703
cmp ecx, 0x10
mov edx, ebp
jae 0x40271f
lea edx, [esp + 0x94]
lea esi, [esp + 0x2c0]
mov al, byte [edx]
mov byte [esi], al
add edx, 1
add esi, 1
cmp al, bl
jne 0x402726
lea edi, [esp + 0x2c0]
add edi, 0xffffffff
mov edi, edi
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x402740
mov dx, word [0x4347c4]
cmp ecx, 0x10
mov word [edi], dx
mov ecx, ebp
jae 0x402762
lea ecx, [esp + 0x94]
lea edx, [esp + 0x4c8]
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
cmp al, bl
jne 0x402770
lea eax, [esp + 0x4c8]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x402788
lea eax, [esp + 0x3c4]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x4027a0
mov ecx, dword [0x4347b8]
mov edx, dword [0x4347bc]
mov dword [eax], ecx
mov cl, byte [0x4347c0]
mov dword [eax + 4], edx
mov byte [eax + 8], cl
lea eax, [esp + 0x5cc]
add eax, 0xffffffff
mov edi, edi
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x4027d0
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x402883
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x402883
cmp dword [esp + 0x28], 1
jne 0x402883
push 0xe
push str.devsetup64.exe
lea ecx, [esp + 0x7c]
call fcn.00401fe0
cmp dword [esp + 0x8c], 0x10
mov eax, dword [esp + 0x78]
jae 0x402836
lea eax, [esp + 0x78]
mov edx, eax
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x402838
lea edi, [esp + 0x2c0]
sub eax, edx
add edi, 0xffffffff
lea ecx, [ecx]
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x402850
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x3c4]
rep movsb byte es:[edi], byte [esi]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x402874
jmp 0x40290f
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx eax, al
cmp eax, 5
lea eax, [esp + 0x3c4]
jne 0x4028ac
add eax, 0xffffffff
jmp 0x4028a0
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x4028a0
jmp 0x4028ba
add eax, 0xffffffff
nop
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x4028b0
push 0xe
push str.devsetup32.exe
lea ecx, [esp + 0x7c]
call fcn.00401fe0
cmp dword [esp + 0x8c], 0x10
mov eax, dword [esp + 0x78]
jae 0x4028dc
lea eax, [esp + 0x78]
mov edx, eax
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4028e0
lea edi, [esp + 0x2c0]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x4028f5
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x10
push str.__install__debug
lea ecx, [esp + 0xb4]
mov dword [esp + 0xcc], 0xf
mov dword [esp + 0xc8], ebx
mov byte [esp + 0xb8], bl
call fcn.00401fe0
mov ebp, dword [esp + 0x2c]
mov ecx, dword [ebp + 0x48]
mov eax, ecx
mov byte [esp + 0x6dc], 3
lea esi, [eax + 1]
nop
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x402950
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0xb4]
call fcn.00401ef0
push 0x44
lea edx, [esp + 0x34]
push ebx
push edx
call fcn.0041e710
xor eax, eax
add esp, 0xc
cmp dword [esp + 0xc4], 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x30], 0x44
jae 0x4029ab
lea eax, [esp + 0xb0]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x34]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
lea eax, [esp + 0x2e4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
mov edi, 0x4e27
jne 0x4029e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0xa4], edi
jmp 0x402a1c
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
mov dword [ebp + 0xa4], ecx
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
cmp dword [ebp + 0xa4], edi
je 0x402a2b
mov ecx, ebp
call fcn.004011a0
mov esi, dword [ebp + 0xa4]
mov edi, 0x10
cmp dword [esp + 0xc4], edi
jb 0x402a4f
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.00402fa8
add esp, 4
cmp dword [esp + 0x8c], edi
mov ebp, 0xf
mov dword [esp + 0xc4], ebp
mov dword [esp + 0xc0], ebx
mov byte [esp + 0xb0], bl
jb 0x402a7f
mov edx, dword [esp + 0x78]
push edx
call fcn.00402fa8
add esp, 4
push 0x401b00
push 0x12
push 0x1c
lea eax, [esp + 0xd4]
push eax
mov dword [esp + 0x9c], ebp
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
mov byte [esp + 0x6ec], bl
call fcn.0041f049
cmp dword [esp + 0xa8], edi
jb 0x402aca
mov ecx, dword [esp + 0x94]
push ecx
call fcn.00402fa8
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x6d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6bc]
xor ecx, esp
call fcn.0041e6f8
add esp, 0x6cc
ret