Function at 0x42aae0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582439
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x6039b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x140], ebx
mov dword [ebp - 4], 3
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
cmp esi, edi
je 0x42ae9c
nop dword [eax + eax]
push ecx
mov ecx, esp
mov dword [ebp - 0x13c], esp
push 0x5dfc54
call fcn.00407740
mov byte [ebp - 4], 4
mov ebx, dword [ebp + 0x1c]
add ebx, 0xfffffff0
push ecx
mov dword [ebp - 0x144], esp
mov dword [ebp - 0x154], esp
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [ebx + 0xc], 0
mov ecx, eax
lea eax, [ebx + 0xc]
jl 0x42ab75
cmp ecx, dword [ebx]
jne 0x42ab75
lock inc dword [eax]
jmp 0x42abb9
mov eax, dword [ecx]
push 2
push dword [ebx + 4]
call dword [eax]
mov dword [ebp - 0x134], eax
test eax, eax
je 0x42af7a
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
lea eax, [ebx + 0x10]
mov edx, dword [ebx + 4]
mov ebx, dword [ebp - 0x134]
lea ecx, [edx*2 + 2]
push ecx
push eax
lea edx, [edx*2 + 2]
lea ecx, [ebx + 0x10]
call fcn.00407f10
add esp, 8
mov ecx, dword [ebp - 0x154]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
mov byte [ebp - 4], 5
mov ebx, dword [ebp + 0xc]
add ebx, 0xfffffff0
push ecx
mov dword [ebp - 0x148], esp
mov dword [ebp - 0x158], esp
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [ebx + 0xc], 0
mov ecx, eax
lea eax, [ebx + 0xc]
jl 0x42abf6
cmp ecx, dword [ebx]
jne 0x42abf6
lock inc dword [eax]
jmp 0x42ac3a
mov eax, dword [ecx]
push 2
push dword [ebx + 4]
call dword [eax]
mov dword [ebp - 0x134], eax
test eax, eax
je 0x42af7a
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
lea eax, [ebx + 0x10]
mov edx, dword [ebx + 4]
mov ebx, dword [ebp - 0x134]
lea ecx, [edx*2 + 2]
push ecx
push eax
lea edx, [edx*2 + 2]
lea ecx, [ebx + 0x10]
call fcn.00407f10
add esp, 8
mov ecx, dword [ebp - 0x158]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
mov byte [ebp - 4], 6
mov eax, dword [esi]
lea ebx, [eax - 0x10]
mov dword [ebp - 0x138], eax
push ecx
mov ecx, dword [ebx]
mov dword [ebp - 0x14c], esp
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [ebx + 0xc], 0
mov ecx, eax
lea eax, [ebx + 0xc]
jl 0x42ac76
cmp ecx, dword [ebx]
jne 0x42ac76
lock inc dword [eax]
jmp 0x42acbe
mov eax, dword [ecx]
lea edx, [ebx + 4]
push 2
push dword [edx]
mov dword [ebp - 0x134], edx
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x42af7a
mov edx, dword [ebp - 0x134]
mov ecx, dword [edx]
mov dword [ebx + 4], ecx
mov edx, dword [edx]
lea ecx, [edx*2 + 2]
push ecx
push dword [ebp - 0x138]
lea edx, [edx*2 + 2]
lea ecx, [ebx + 0x10]
call fcn.00407f10
add esp, 8
mov ecx, dword [ebp - 0x14c]
lea eax, [ebx + 0x10]
mov edx, dword [ebp - 0x140]
mov dword [ecx], eax
mov ecx, reloc.WS2_32.dll_accept
mov byte [ebp - 4], 3
call fcn.0042ba60
add esp, 0xc
mov ecx, esp
mov dword [ebp - 0x148], esp
push 0x5dfc54
call fcn.00407740
mov byte [ebp - 4], 7
mov ebx, dword [ebp + 0x1c]
add ebx, 0xfffffff0
push ecx
mov dword [ebp - 0x144], esp
mov dword [ebp - 0x15c], esp
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [ebx + 0xc], 0
mov ecx, eax
lea eax, [ebx + 0xc]
jl 0x42ad24
cmp ecx, dword [ebx]
jne 0x42ad24
lock inc dword [eax]
jmp 0x42ad68
mov eax, dword [ecx]
push 2
push dword [ebx + 4]
call dword [eax]
mov dword [ebp - 0x138], eax
test eax, eax
je 0x42af7a
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
lea eax, [ebx + 0x10]
mov edx, dword [ebx + 4]
mov ebx, dword [ebp - 0x138]
lea ecx, [edx*2 + 2]
push ecx
push eax
lea edx, [edx*2 + 2]
lea ecx, [ebx + 0x10]
call fcn.00407f10
add esp, 8
mov ecx, dword [ebp - 0x15c]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
mov byte [ebp - 4], 8
mov ebx, dword [ebp + 0xc]
add ebx, 0xfffffff0
push ecx
mov dword [ebp - 0x13c], esp
mov dword [ebp - 0x160], esp
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [ebx + 0xc], 0
mov ecx, eax
lea eax, [ebx + 0xc]
jl 0x42ada5
cmp ecx, dword [ebx]
jne 0x42ada5
lock inc dword [eax]
jmp 0x42ade9
mov eax, dword [ecx]
push 2
push dword [ebx + 4]
call dword [eax]
mov dword [ebp - 0x138], eax
test eax, eax
je 0x42af7a
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
lea eax, [ebx + 0x10]
mov edx, dword [ebx + 4]
mov ebx, dword [ebp - 0x138]
lea ecx, [edx*2 + 2]
push ecx
push eax
lea edx, [edx*2 + 2]
lea ecx, [ebx + 0x10]
call fcn.00407f10
add esp, 8
mov ecx, dword [ebp - 0x160]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
mov byte [ebp - 4], 9
mov eax, dword [esi]
lea ebx, [eax - 0x10]
mov dword [ebp - 0x134], eax
push ecx
mov ecx, dword [ebx]
mov dword [ebp - 0x150], esp
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [ebx + 0xc], 0
mov ecx, eax
lea eax, [ebx + 0xc]
jl 0x42ae25
cmp ecx, dword [ebx]
jne 0x42ae25
lock inc dword [eax]
jmp 0x42ae6d
mov eax, dword [ecx]
lea edx, [ebx + 4]
push 2
push dword [edx]
mov dword [ebp - 0x138], edx
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x42af7a
mov edx, dword [ebp - 0x138]
mov ecx, dword [edx]
mov dword [ebx + 4], ecx
mov edx, dword [edx]
lea ecx, [edx*2 + 2]
push ecx
push dword [ebp - 0x134]
lea edx, [edx*2 + 2]
lea ecx, [ebx + 0x10]
call fcn.00407f10
add esp, 8
mov ecx, dword [ebp - 0x150]
lea eax, [ebx + 0x10]
mov ebx, dword [ebp - 0x140]
mov edx, ebx
mov dword [ecx], eax
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 3
call fcn.0042ba60
add esi, 4
add esp, 0x10
cmp esi, edi
jne 0x42ab30
push 0x11c
lea eax, [ebp - 0x130]
push 0
push eax
call fcn.00553bc0
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x130]
add esp, 0xc
mov dword [ebp - 0x130], 0x11c
push eax
call edi
or esi, 0xffffffff
cmp dword [ebp - 0x12c], 0xa
je 0x42af21
push 0x11c
lea eax, [ebp - 0x130]
push 0
push eax
call fcn.00553bc0
add esp, 0xc
mov dword [ebp - 0x130], 0x11c
lea eax, [ebp - 0x130]
push eax
call edi
cmp dword [ebp - 0x12c], 6
jne 0x42b236
mov eax, dword [ebp - 0x128]
cmp eax, 2
je 0x42af21
cmp eax, 3
jne 0x42b236
push ecx
mov ecx, esp
mov dword [ebp - 0x148], esp
push 0x5dfc54
call fcn.00407740
push ebx
push ecx
mov byte [ebp - 4], 0xa
mov ebx, esp
mov dword [ebp - 0x13c], ebx
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0x144], esp
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
mov ecx, eax
lea eax, [esi - 4]
jl 0x42af6b
cmp ecx, dword [esi - 0x10]
jne 0x42af6b
lea edi, [esi - 0x10]
lock inc dword [eax]
jmp 0x42afa3
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
jne 0x42af7f
call fcn.00405e20
mov eax, dword [esi - 0xc]
lea ecx, [edi + 0x10]
mov dword [edi + 4], eax
mov edx, dword [esi - 0xc]
lea eax, [edx*2 + 2]
push eax
push esi
lea edx, [edx*2 + 2]
call fcn.00407f10
add esp, 8
lea eax, [edi + 0x10]
mov dword [ebx], eax
push ecx
mov byte [ebp - 4], 0xb
mov ebx, esp
mov dword [ebp - 0x13c], ebx
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
mov ecx, eax
lea eax, [esi - 4]
jl 0x42afd8
cmp ecx, dword [esi - 0x10]
jne 0x42afd8
lea edi, [esi - 0x10]
lock inc dword [eax]
jmp 0x42b010
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
jne 0x42afec
call fcn.00405e20
mov eax, dword [esi - 0xc]
lea ecx, [edi + 0x10]
mov dword [edi + 4], eax
mov edx, dword [esi - 0xc]
lea eax, [edx*2 + 2]
push eax
push esi
lea edx, [edx*2 + 2]
call fcn.00407f10
add esp, 8
lea eax, [edi + 0x10]
mov ecx, reloc.WS2_32.dll_accept
mov dword [ebx], eax
lea edx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.00428cf0
add esp, 0xc
mov ecx, esp
mov dword [ebp - 0x148], esp
push 0x5dfc54
call fcn.00407740
push dword [ebp - 0x140]
mov byte [ebp - 4], 0xc
push ecx
mov ebx, esp
mov dword [ebp - 0x144], esp
mov dword [ebp - 0x13c], ebx
mov esi, dword [ebp + 0x1c]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
mov ecx, eax
lea eax, [esi - 4]
jl 0x42b077
cmp ecx, dword [esi - 0x10]
jne 0x42b077
lea edi, [esi - 0x10]
lock inc dword [eax]
jmp 0x42b0af
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
jne 0x42b08b
call fcn.00405e20
mov eax, dword [esi - 0xc]
lea ecx, [edi + 0x10]
mov dword [edi + 4], eax
mov edx, dword [esi - 0xc]
lea eax, [edx*2 + 2]
push eax
push esi
lea edx, [edx*2 + 2]
call fcn.00407f10
add esp, 8
lea eax, [edi + 0x10]
mov dword [ebx], eax
push ecx
mov byte [ebp - 4], 0xd
mov ebx, esp
mov dword [ebp - 0x13c], ebx
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
mov ecx, eax
lea eax, [esi - 4]
jl 0x42b0e4
cmp ecx, dword [esi - 0x10]
jne 0x42b0e4
lea edi, [esi - 0x10]
lock inc dword [eax]
jmp 0x42b11c
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
jne 0x42b0f8
call fcn.00405e20
mov eax, dword [esi - 0xc]
lea ecx, [edi + 0x10]
mov dword [edi + 4], eax
mov edx, dword [esi - 0xc]
lea eax, [edx*2 + 2]
push eax
push esi
lea edx, [edx*2 + 2]
call fcn.00407f10
add esp, 8
lea eax, [edi + 0x10]
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebx], eax
lea edx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.00428cf0
lea eax, [ebp + 0xc]
mov edx, str.MasterOFD_
push eax
lea ecx, [ebp - 0x134]
call fcn.0040d100
add esp, 0x14
mov byte [ebp - 4], 0xe
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
cmp esi, edi
je 0x42b1d8
nop dword [eax + eax]
mov ebx, dword [ebp - 0x134]
cmp dword [ebx - 4], 1
jle 0x42b180
push dword [ebx - 0xc]
lea ecx, [ebp - 0x134]
call fcn.00407ca0
mov ebx, dword [ebp - 0x134]
mov eax, dword [esi]
cmp dword [eax - 4], 1
jle 0x42b192
push dword [eax - 0xc]
mov ecx, esi
call fcn.00407ca0
mov ecx, dword [esi]
mov edx, ebx
call fcn.0042a0c0
mov eax, dword [esi]
test eax, eax
jne 0x42b1a5
xor ecx, ecx
jmp 0x42b1bb
push dword [eax - 8]
push eax
call fcn.0055d736
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x42b2d7
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x42b2d7
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
add esi, 4
mov word [eax + ecx*2], dx
cmp esi, edi
jne 0x42b160
mov eax, dword [ebp - 0x134]
push dword [eax - 8]
push eax
call fcn.0055d736
mov edx, eax
add esp, 8
test edx, edx
js 0x42b2d7
mov ecx, dword [ebp - 0x134]
cmp edx, dword [ecx - 8]
jg 0x42b2d7
mov dword [ecx - 0xc], edx
or esi, 0xffffffff
mov eax, dword [ebp - 0x134]
xor ecx, ecx
mov byte [ebp - 4], 3
mov word [eax + edx*2], cx
mov eax, esi
mov edx, dword [ebp - 0x134]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42b236
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0
push 0x3000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42b268
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42b286
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x42b337
mov edi, dword [ebp + 0x14]
cmp ebx, edi
je 0x42b2c3
nop dword [eax]
mov edx, dword [ebx]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42b2b9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 4
cmp ebx, edi
jne 0x42b2a0
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
sub eax, ebx
sar eax, 2
cmp eax, 0x3fffffff
jbe 0x42b2e1
call fcn.0055d130
push 0x80070057
call fcn.00402a80
shl eax, 2
cmp eax, 0x1000
jb 0x42b319
test bl, 0x1f
je 0x42b2f5
call fcn.0055d130
mov eax, dword [ebx - 4]
cmp eax, ebx
jb 0x42b301
call fcn.0055d130
sub ebx, eax
cmp ebx, 4
jae 0x42b30d
call fcn.0055d130
cmp ebx, 0x23
jbe 0x42b317
call fcn.0055d130
mov ebx, eax
push ebx
call fcn.00550427
add esp, 4
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x18], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x42b356
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055042c
mov esp, ebp
pop ebp
ret