Function at 0x5cd860
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x653373
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x338
mov eax, dword [0x6fcc24]
push ebx
push esi
xor ebx, ebx
push edi
cmp eax, ebx
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], ebx
jne 0x5cdf71
mov eax, dword [esi + 0x4d0]
cmp eax, ebx
je 0x5cd8c7
mov eax, dword [eax + 0x10]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5cd8c4
mov ecx, dword [esi + 0x4d0]
push ebx
push ebx
push 0x10
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x48], ebx
mov word [ebp - 0x4c], bx
lea eax, [ebp - 0x50]
push 1
push eax
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 3
call fcn.0059d840
mov edi, dword [esi + 0x44]
cmp edi, 4
je 0x5cd8f8
cmp edi, 5
je 0x5cd8f8
cmp dword [esi + 0x31c], ebx
je 0x5cd90e
mov eax, dword [esi + 0x4a8]
mov ecx, dword [esi + 0x4ac]
mov edx, eax
or edx, ecx
je 0x5cd90e
mov ebx, eax
jmp 0x5cd91a
mov ebx, dword [esi + 0x4b0]
mov ecx, dword [esi + 0x4b4]
mov eax, dword [esi + 0x4bc]
mov edx, dword [esi + 0x4b8]
cmp eax, ecx
jl 0x5cd934
jg 0x5cd930
cmp edx, ebx
jbe 0x5cd934
mov ebx, edx
mov ecx, eax
mov eax, dword [esi + 0x4ac]
test eax, eax
jl 0x5cd94a
jg 0x5cd962
mov eax, dword [esi + 0x4a8]
test eax, eax
ja 0x5cd962
cmp edi, 4
je 0x5cd962
cmp edi, 5
je 0x5cd962
mov eax, dword [esi + 0x31c]
test eax, eax
jne 0x5cd962
xor dl, dl
jmp 0x5cd964
mov dl, 1
mov eax, dword [ebp - 0x50]
test eax, eax
mov edi, eax
jne 0x5cd970
lea edi, [ebp - 0x4c]
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x5cd97a
lea eax, [esi + 0x58]
push 0
push edi
push eax
mov eax, dword [esi + 0x16c]
shr eax, 0x10
push edx
push ecx
and eax, 1
push ebx
push eax
lea ecx, [ebp - 0x344]
call fcn.004480c0
lea ecx, [ebp - 0x344]
mov byte [ebp - 4], 4
call fcn.006226c5
cmp eax, 1
jne 0x5cdeeb
mov eax, dword [ebp - 0x1a0]
cmp eax, 1
jne 0x5cda8f
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0xc8]
mov ebx, 0x40
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x54]
mov dword [ebp - 0xc8], 0x3c
test eax, eax
mov dword [ebp - 0xc4], ebx
jne 0x5cd9ee
lea eax, [esi + 0x58]
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0xb8], eax
push ecx
mov dword [ebp - 0xac], 1
call dword [0x6fc2d0]
test eax, eax
jne 0x5cdeeb
mov eax, dword [0x6cdafc]
test eax, eax
jne 0x5cdeeb
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x8c]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x8c], 0x3c
test eax, eax
mov dword [ebp - 0x88], ebx
jne 0x5cda49
lea eax, [esi + 0x58]
lea edx, [ebp - 0x14]
push eax
push edx
call fcn.00402850
mov eax, dword [ebp - 0x14]
add esp, 8
push 0x3f
push eax
call fcn.00609c00
add esp, 8
test eax, eax
jne 0x5cda82
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x8c]
push edx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x70], 1
call dword [0x6fc2cc]
lea ecx, [ebp - 0x14]
call fcn.00622d8a
jmp 0x5cdeeb
cmp eax, 2
jne 0x5cdc9f
mov eax, dword [esi + 0x54]
xor edi, edi
cmp eax, edi
jne 0x5cdaa4
lea eax, [esi + 0x58]
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x3c], edi
mov word [ebp - 0x40], di
call fcn.00401f20
mov eax, dword [ebp - 0x44]
cmp eax, edi
jne 0x5cdac1
lea eax, [ebp - 0x40]
push 0x5c
push eax
call fcn.00609ba3
mov ebx, eax
xor edx, edx
add esp, 8
cmp ebx, edx
je 0x5cdc93
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], edx
mov word [ebp - 0x1c], dx
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 6
cmp eax, edx
jne 0x5cdaf0
lea eax, [ebp - 0x40]
mov ecx, str._n__select___s_
test ecx, ecx
je 0x5cdbc4
test eax, eax
je 0x5cdbc4
xor esi, esi
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], esi
mov word [ebp - 0x28], si
call fcn.00401f20
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 7
call fcn.00401070
lea ecx, [ebp - 0x38]
call fcn.004027c0
push esi
push str._n__select___s_
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 8
call fcn.004027e0
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
call fcn.00401f10
push eax
call fcn.00609a4e
lea esi, [eax + esi + 2]
lea edi, [esi + esi]
push edi
call fcn.00622acb
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x20], edx
je 0x5cdba9
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x2c]
call fcn.00401f10
push eax
lea ecx, [ebp - 0x38]
call fcn.00401f10
push eax
mov eax, dword [ebp - 0x20]
push esi
push eax
call fcn.006099de
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00609a4e
add esp, 0x14
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 7
call fcn.00401070
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.00401070
mov edx, dword [ebp - 0x20]
add ebx, 2
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x8c]
mov word [ebx], 0
mov ebx, 0x3c
mov esi, 0x40
rep stosd dword es:[edi], eax
test edx, edx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x70], 1
mov dword [ebp - 0x7c], 0x6cc844
jne 0x5cdc06
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x78], edx
push eax
call dword [0x6fc2d0]
test eax, eax
jne 0x5cdc87
mov eax, dword [0x6cdafc]
test eax, eax
jne 0x5cdc87
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x5cdc2d
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push eax
push ecx
call fcn.00402850
mov edx, dword [ebp - 0x14]
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0xc8]
add esp, 8
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xc8]
mov dword [ebp - 0xc8], ebx
push eax
mov dword [ebp - 0xc4], esi
mov dword [ebp - 0xac], 1
mov dword [ebp - 0xb8], str.explorer.exe
mov dword [ebp - 0xb4], edx
call dword [0x6fc2cc]
lea ecx, [ebp - 0x14]
call fcn.00622d8a
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.00401070
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x44]
jmp 0x5cdee6
cmp eax, 3
jne 0x5cdeeb
xor eax, eax
xor bl, bl
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
mov word [ebp - 0x1c], ax
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 9
push ecx
mov dword [ebp - 0x15c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x5cdce9
cmp dword [ebp - 0x14c], 2
jne 0x5cdce9
cmp dword [ebp - 0x158], 6
jb 0x5cdce9
mov bl, 1
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x8c]
rep stosd dword es:[edi], eax
test bl, bl
mov dword [ebp - 0x8c], 0x3c
mov dword [ebp - 0x88], 0x40
mov dword [ebp - 0x70], 1
je 0x5cde31
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x7c], str.rundll32.exe
test eax, eax
jne 0x5cdd2c
lea eax, [esi + 0x58]
mov edx, str.shell32.dll_OpenAs_RunDLL__s
test edx, edx
je 0x5cddfd
test eax, eax
je 0x5cddfd
xor ebx, ebx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x28], bx
call fcn.00401f20
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call fcn.00401070
lea ecx, [ebp - 0x38]
call fcn.004027c0
push ebx
push str.shell32.dll_OpenAs_RunDLL__s
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xb
call fcn.004027e0
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
call fcn.00401f10
push eax
call fcn.00609a4e
lea esi, [eax + esi + 2]
lea edi, [esi + esi]
push edi
call fcn.00622acb
mov edx, eax
add esp, 8
cmp edx, ebx
mov dword [ebp - 0x20], edx
je 0x5cdde5
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x2c]
call fcn.00401f10
push eax
lea ecx, [ebp - 0x38]
call fcn.00401f10
push eax
mov eax, dword [ebp - 0x20]
push esi
push eax
call fcn.006099de
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00609a4e
add esp, 0x14
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xa
call fcn.00401070
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 9
call fcn.00401070
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5cde19
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x8c]
push eax
call dword [0x6fc2d0]
jmp 0x5cdedf
lea eax, [ebp - 0x8c]
lea edx, [ebp - 0x1c]
push eax
mov dword [ebp - 0x78], edx
call dword [0x6fc2d0]
jmp 0x5cdedf
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x5cde3b
lea eax, [esi + 0x58]
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x7c], eax
push ecx
mov dword [ebp - 0x80], str.openas
call dword [0x6fc2d0]
test eax, eax
jne 0x5cdedf
mov eax, dword [0x6cdafc]
test eax, eax
jne 0x5cdedf
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x5cde6d
lea eax, [esi + 0x58]
lea edx, [ebp - 0x14]
push eax
push edx
call fcn.00402850
mov eax, dword [ebp - 0x14]
add esp, 8
push 0x3f
push eax
call fcn.00609c00
add esp, 8
test eax, eax
jne 0x5cded7
mov ecx, 0xf
lea edi, [ebp - 0xc8]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0xc8]
push edx
mov dword [ebp - 0xc8], 0x3c
mov dword [ebp - 0xc4], 0x40
mov dword [ebp - 0xac], 1
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xbc], 0x6cf790
call dword [0x6fc2cc]
lea ecx, [ebp - 0x14]
call fcn.00622d8a
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
call fcn.00401070
lea ecx, [ebp - 0x190]
mov byte [ebp - 4], 0x13
call fcn.00401070
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 0x12
call fcn.00401070
lea ecx, [ebp - 0x1f8]
mov byte [ebp - 4], 0x11
call fcn.0061fef2
mov eax, 0x657cdc
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x208], eax
mov dword [ebp - 0x218], eax
mov byte [ebp - 4], 0xe
call fcn.0062e243
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 0xd
call fcn.0062e243
lea ecx, [ebp - 0x2e8]
mov byte [ebp - 4], 0xc
call fcn.0043e100
lea ecx, [ebp - 0x344]
mov byte [ebp - 4], 3
call fcn.00622306
lea ecx, [ebp - 0x50]
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