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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58efa3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x33c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x30], bx
lea eax, [ebp - 0x34]
lea ecx, [esi + 0x20]
push eax
mov byte [ebp - 4], 1
call fcn.00507ba0
mov eax, dword [esi + 0x3b0]
cmp eax, ebx
je 0x521940
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x521940
mov edx, dword [esi + 0x3b0]
mov eax, dword [edx + 0xc]
push eax
call fcn.005669ff
mov edi, eax
jmp 0x521942
xor edi, edi
cmp dword [esi + 0x39c], ebx
jl 0x521958
jg 0x521954
cmp dword [esi + 0x398], ebx
jbe 0x521958
mov dl, 1
jmp 0x52195a
xor dl, dl
mov ecx, dword [ebp - 0x34]
cmp ecx, ebx
jne 0x521964
lea ecx, [ebp - 0x30]
mov eax, dword [esi + 0x54]
cmp eax, ebx
jne 0x52196e
lea eax, [esi + 0x58]
push edi
push ecx
mov ecx, dword [esi + 0x3a4]
push eax
push edx
mov edx, dword [esi + 0x3a0]
push ecx
push edx
lea ecx, [ebp - 0x348]
call fcn.0042a4c0
lea ecx, [ebp - 0x348]
mov byte [ebp - 4], 2
call fcn.00566096
cmp eax, 1
jne 0x521bbf
mov eax, dword [ebp - 0x150]
cmp eax, 1
jne 0x5219eb
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x7c], 0x3c
cmp eax, ebx
mov dword [ebp - 0x78], 0x40
jne 0x5219d2
lea eax, [esi + 0x58]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x60], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
jmp 0x521bbf
cmp eax, 2
jne 0x521a4c
mov eax, dword [esi + 0x54]
cmp eax, ebx
jne 0x5219fa
lea eax, [esi + 0x58]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov word [ebp - 0x18], bx
call fcn.00402b60
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x521a17
lea eax, [ebp - 0x18]
push 0x5c
push eax
call fcn.0054e65e
add esp, 8
cmp eax, ebx
je 0x521a44
mov word [eax], bx
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x521a33
lea eax, [ebp - 0x18]
push 1
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x1c]
jmp 0x521bba
cmp eax, 3
jne 0x521bbf
xor eax, eax
xor bl, bl
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
mov word [ebp - 0x18], ax
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 3
push ecx
mov dword [ebp - 0x110], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x521a96
cmp dword [ebp - 0x100], 2
jne 0x521a96
cmp dword [ebp - 0x10c], 6
jb 0x521a96
mov bl, 1
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
test bl, bl
mov dword [ebp - 0x7c], 0x3c
mov dword [ebp - 0x78], 0x40
je 0x521b8e
mov eax, dword [esi + 0x54]
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x6c], str.rundll32.exe
jne 0x521acb
lea eax, [esi + 0x58]
mov edx, str.shell32.dll_OpenAs_RunDLL__s
test edx, edx
je 0x521b7a
cmp eax, edi
je 0x521b7a
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], edi
mov word [ebp - 0x24], di
call fcn.00402b60
mov bl, 4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00401070
push str.shell32.dll_OpenAs_RunDLL__s
lea ecx, [ebp - 0x40]
call fcn.00403500
mov esi, dword [ebp - 0x38]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.00403580
push eax
call fcn.0054e46e
add eax, esi
lea eax, [eax + eax + 2]
push eax
call fcn.0056649c
add esp, 8
cmp eax, edi
mov dword [ebp - 0x1c], eax
je 0x521b63
lea ecx, [ebp - 0x28]
call fcn.00403580
push eax
lea ecx, [ebp - 0x40]
call fcn.00403580
mov ecx, dword [ebp - 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0054e46e
add esp, 0x10
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.00401070
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00401070
mov eax, dword [ebp - 0x1c]
cmp eax, edi
je 0x521b86
mov dword [ebp - 0x68], eax
jmp 0x521ba2
lea eax, [ebp - 0x18]
mov dword [ebp - 0x68], eax
jmp 0x521ba2
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x521b98
lea eax, [esi + 0x58]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x70], str.openas
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x60], 1
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00401070
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 0xd
call fcn.00401070
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 0xc
call fcn.00401070
lea ecx, [ebp - 0x1a8]
mov byte [ebp - 4], 0xb
call fcn.005638c3
lea ecx, [ebp - 0x1e8]
mov byte [ebp - 4], 0xa
call fcn.00571f23
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 9
call fcn.00571f23
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 8
call fcn.00571dd3
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 7
call fcn.00571d9b
lea ecx, [ebp - 0x2ec]
mov byte [ebp - 4], 6
call fcn.00424a60
lea ecx, [ebp - 0x348]
mov byte [ebp - 4], 1
call fcn.00565cd7
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.00401070
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret